From 54bc67f6190e691ad2978b7fe3f9582695767f93 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Mon, 9 Mar 2015 09:39:07 -0500 Subject: cpu: o3: combine if with same condition --- src/cpu/o3/commit_impl.hh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/cpu') diff --git a/src/cpu/o3/commit_impl.hh b/src/cpu/o3/commit_impl.hh index 403e582d3..a62c5f260 100644 --- a/src/cpu/o3/commit_impl.hh +++ b/src/cpu/o3/commit_impl.hh @@ -906,13 +906,10 @@ DefaultCommit::commit() if (toIEW->commitInfo[tid].mispredictInst->isUncondCtrl()) { toIEW->commitInfo[tid].branchTaken = true; } + ++branchMispredicts; } toIEW->commitInfo[tid].pc = fromIEW->pc[tid]; - - if (toIEW->commitInfo[tid].mispredictInst) { - ++branchMispredicts; - } } if (commitStatus[tid] == ROBSquashing) { -- cgit v1.2.3