Search in sources :

Example 1 with HotSpotInstructionProfiling

use of org.graalvm.compiler.hotspot.HotSpotInstructionProfiling in project graal by oracle.

the class HotSpotSuitesProvider method createLIRSuites.

@Override
public LIRSuites createLIRSuites(OptionValues options) {
    LIRSuites suites = defaultSuitesCreator.createLIRSuites(options);
    String profileInstructions = HotSpotBackend.Options.ASMInstructionProfiling.getValue(options);
    if (profileInstructions != null) {
        suites.getPostAllocationOptimizationStage().appendPhase(new HotSpotInstructionProfiling(profileInstructions));
    }
    if (Assertions.detailedAssertionsEnabled(options)) {
        suites.getPostAllocationOptimizationStage().appendPhase(new VerifyMaxRegisterSizePhase(config.maxVectorSize));
    }
    return suites;
}
Also used : HotSpotInstructionProfiling(org.graalvm.compiler.hotspot.HotSpotInstructionProfiling) LIRSuites(org.graalvm.compiler.lir.phases.LIRSuites) VerifyMaxRegisterSizePhase(org.graalvm.compiler.hotspot.lir.VerifyMaxRegisterSizePhase)

Aggregations

HotSpotInstructionProfiling (org.graalvm.compiler.hotspot.HotSpotInstructionProfiling)1 VerifyMaxRegisterSizePhase (org.graalvm.compiler.hotspot.lir.VerifyMaxRegisterSizePhase)1 LIRSuites (org.graalvm.compiler.lir.phases.LIRSuites)1