comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotSuitesProvider.java @ 20003:422e60a2f4b9

Implement dynamic instruction counters on assembly level
author Stefan Anzinger <stefan.anzinger@oracle.com>
date Mon, 23 Mar 2015 15:58:36 +0100
parents 4d33cd6e0c8f
children 59e8737c06fd
comparison
equal deleted inserted replaced
19948:59c2d62927f7 20003:422e60a2f4b9
130 public LIRSuites getDefaultLIRSuites() { 130 public LIRSuites getDefaultLIRSuites() {
131 return defaultLIRSuites.getValue(); 131 return defaultLIRSuites.getValue();
132 } 132 }
133 133
134 public LIRSuites createLIRSuites() { 134 public LIRSuites createLIRSuites() {
135 return Suites.createDefaultLIRSuites(); 135 LIRSuites suites = Suites.createDefaultLIRSuites();
136 String profileInstructions = HotSpotBackend.Options.ASMInstructionProfiling.getValue();
137 if (profileInstructions != null) {
138 suites.getPostAllocationOptimizationStage().appendPhase(new HotSpotInstructionProfiling(profileInstructions));
139 }
140 return suites;
136 } 141 }
137
138 } 142 }