Search in sources :

Example 1 with ImplicitAssertionsPhase

use of com.oracle.svm.hosted.phases.ImplicitAssertionsPhase in project graal by oracle.

the class SVMHost method optimizeAfterParsing.

protected void optimizeAfterParsing(BigBang bb, StructuredGraph graph) {
    new ImplicitAssertionsPhase().apply(graph, bb.getProviders());
    new BoxNodeIdentityPhase().apply(graph, bb.getProviders());
    new PartialEscapePhase(false, false, CanonicalizerPhase.create(), null, options).apply(graph, bb.getProviders());
}
Also used : BoxNodeIdentityPhase(org.graalvm.compiler.phases.common.BoxNodeIdentityPhase) ImplicitAssertionsPhase(com.oracle.svm.hosted.phases.ImplicitAssertionsPhase) PartialEscapePhase(org.graalvm.compiler.virtual.phases.ea.PartialEscapePhase)

Example 2 with ImplicitAssertionsPhase

use of com.oracle.svm.hosted.phases.ImplicitAssertionsPhase in project graal by oracle.

the class CompileQueue method afterParseCanonicalization.

protected PhaseSuite<HighTierContext> afterParseCanonicalization() {
    PhaseSuite<HighTierContext> phaseSuite = new PhaseSuite<>();
    phaseSuite.appendPhase(new ImplicitAssertionsPhase());
    phaseSuite.appendPhase(new DeadStoreRemovalPhase());
    phaseSuite.appendPhase(new DevirtualizeCallsPhase());
    phaseSuite.appendPhase(CanonicalizerPhase.create());
    phaseSuite.appendPhase(new StrengthenStampsPhase());
    phaseSuite.appendPhase(CanonicalizerPhase.create());
    phaseSuite.appendPhase(new OptimizeExceptionPathsPhase());
    if (ImageBuildStatistics.Options.CollectImageBuildStatistics.getValue(universe.hostVM().options())) {
        phaseSuite.appendPhase(CanonicalizerPhase.create());
        phaseSuite.appendPhase(new ImageBuildStatisticsCounterPhase(ImageBuildStatistics.CheckCountLocation.AFTER_PARSE_CANONICALIZATION));
    }
    return phaseSuite;
}
Also used : OptimizeExceptionPathsPhase(com.oracle.svm.core.graal.phases.OptimizeExceptionPathsPhase) ImplicitAssertionsPhase(com.oracle.svm.hosted.phases.ImplicitAssertionsPhase) ImageBuildStatisticsCounterPhase(com.oracle.svm.hosted.phases.ImageBuildStatisticsCounterPhase) DevirtualizeCallsPhase(com.oracle.svm.hosted.phases.DevirtualizeCallsPhase) HighTierContext(org.graalvm.compiler.phases.tiers.HighTierContext) DeadStoreRemovalPhase(com.oracle.svm.core.graal.phases.DeadStoreRemovalPhase) PhaseSuite(org.graalvm.compiler.phases.PhaseSuite) StrengthenStampsPhase(com.oracle.svm.hosted.phases.StrengthenStampsPhase)

Aggregations

ImplicitAssertionsPhase (com.oracle.svm.hosted.phases.ImplicitAssertionsPhase)2 DeadStoreRemovalPhase (com.oracle.svm.core.graal.phases.DeadStoreRemovalPhase)1 OptimizeExceptionPathsPhase (com.oracle.svm.core.graal.phases.OptimizeExceptionPathsPhase)1 DevirtualizeCallsPhase (com.oracle.svm.hosted.phases.DevirtualizeCallsPhase)1 ImageBuildStatisticsCounterPhase (com.oracle.svm.hosted.phases.ImageBuildStatisticsCounterPhase)1 StrengthenStampsPhase (com.oracle.svm.hosted.phases.StrengthenStampsPhase)1 PhaseSuite (org.graalvm.compiler.phases.PhaseSuite)1 BoxNodeIdentityPhase (org.graalvm.compiler.phases.common.BoxNodeIdentityPhase)1 HighTierContext (org.graalvm.compiler.phases.tiers.HighTierContext)1 PartialEscapePhase (org.graalvm.compiler.virtual.phases.ea.PartialEscapePhase)1