# HG changeset patch # User Gilles Duboscq # Date 1423491180 -3600 # Node ID 8c5f514d02c4649fd54bd0d361f2593d797a7b55 # Parent 1283cea95ff57ba8deec40e1d5a5baacb5b6756e LoopUnswicthing: add metric for rejected loops diff -r 1283cea95ff5 -r 8c5f514d02c4 graal/com.oracle.graal.loop/src/com/oracle/graal/loop/phases/LoopUnswitchingPhase.java --- a/graal/com.oracle.graal.loop/src/com/oracle/graal/loop/phases/LoopUnswitchingPhase.java Wed Feb 11 13:56:01 2015 +0100 +++ b/graal/com.oracle.graal.loop/src/com/oracle/graal/loop/phases/LoopUnswitchingPhase.java Mon Feb 09 15:13:00 2015 +0100 @@ -34,6 +34,7 @@ private static final DebugMetric UNSWITCHED = Debug.metric("Unswitched"); private static final DebugMetric UNSWITCH_CANDIDATES = Debug.metric("UnswitchCandidates"); + private static final DebugMetric UNSWITCH_EARLY_REJECTS = Debug.metric("UnswitchEarlyRejects"); @Override protected void run(StructuredGraph graph) { @@ -57,6 +58,8 @@ break; } } + } else { + UNSWITCH_EARLY_REJECTS.increment(); } } } while (unswitched);