diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2015-03-09 09:39:07 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2015-03-09 09:39:07 -0500 |
commit | 54bc67f6190e691ad2978b7fe3f9582695767f93 (patch) | |
tree | d6487f4dbc6d7edf04f2056360de14931fec0335 /src/cpu | |
parent | 61edd5ac97147ec4510fee8d68b2bc1780cbd5d0 (diff) | |
download | gem5-54bc67f6190e691ad2978b7fe3f9582695767f93.tar.xz |
cpu: o3: combine if with same condition
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/o3/commit_impl.hh | 5 |
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) { |