summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2015-03-09 09:39:07 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2015-03-09 09:39:07 -0500
commit54bc67f6190e691ad2978b7fe3f9582695767f93 (patch)
treed6487f4dbc6d7edf04f2056360de14931fec0335 /src/cpu
parent61edd5ac97147ec4510fee8d68b2bc1780cbd5d0 (diff)
downloadgem5-54bc67f6190e691ad2978b7fe3f9582695767f93.tar.xz
cpu: o3: combine if with same condition
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/o3/commit_impl.hh5
1 files changed, 1 insertions, 4 deletions
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<Impl>::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) {