From: Nilay Vaish Date: Mon, 9 Mar 2015 14:39:07 +0000 (-0500) Subject: cpu: o3: combine if with same condition X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=54bc67f6190e691ad2978b7fe3f9582695767f93;p=gem5.git cpu: o3: combine if with same condition --- 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) {