changeset 11cb85883e6a in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=11cb85883e6a
description:
        cpu: o3: combine if with same condition

diffstat:

 src/cpu/o3/commit_impl.hh |  5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diffs (18 lines):

diff -r 41c93a3c1051 -r 11cb85883e6a src/cpu/o3/commit_impl.hh
--- a/src/cpu/o3/commit_impl.hh Mon Mar 09 09:39:07 2015 -0500
+++ b/src/cpu/o3/commit_impl.hh Mon Mar 09 09:39:07 2015 -0500
@@ -906,13 +906,10 @@
                 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) {
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to