Mercurial > hg > graal-jvmci-8
changeset 4997:0c9196f57172
use profiling information whenever possible
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Wed, 29 Feb 2012 19:20:15 -0800 |
parents | 11ce128f8d28 |
children | 71bcf0a9e875 |
files | graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/GraalOptions.java graal/com.oracle.max.graal.java/src/com/oracle/max/graal/java/GraphBuilderPhase.java |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/GraalOptions.java Wed Feb 29 14:49:54 2012 +0100 +++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/GraalOptions.java Wed Feb 29 19:20:15 2012 -0800 @@ -78,9 +78,9 @@ public static int LoopFrequencyPropagationPolicy = -1; // profiling information - public static int MatureExecutionsBranch = 50; - public static int MatureExecutionsPerSwitchCase = 15; - public static int MatureExecutionsTypeProfile = 100; + public static int MatureExecutionsBranch = 1; + public static int MatureExecutionsPerSwitchCase = 1; + public static int MatureExecutionsTypeProfile = 1; //rematerialize settings public static float MinimumUsageProbability = 0.95f;
--- a/graal/com.oracle.max.graal.java/src/com/oracle/max/graal/java/GraphBuilderPhase.java Wed Feb 29 14:49:54 2012 +0100 +++ b/graal/com.oracle.max.graal.java/src/com/oracle/max/graal/java/GraphBuilderPhase.java Wed Feb 29 19:20:15 2012 -0800 @@ -610,6 +610,7 @@ assert !x.isDeleted() && !y.isDeleted(); double probability = profilingInfo.getBranchTakenProbability(bci()); if (probability < 0) { + assert probability == -1 : "invalid probability"; Debug.log("missing probability in %s at bci %d", method, bci()); probability = 0.5; }