Search in sources :

Example 6 with DefaultLoopPolicies

use of org.graalvm.compiler.loop.DefaultLoopPolicies in project graal by oracle.

the class EscapeAnalysisTest method testPeeledLoop.

@Test
public void testPeeledLoop() {
    prepareGraph("testPeeledLoopSnippet", false);
    new LoopPeelingPhase(new DefaultLoopPolicies()).apply(graph, getDefaultHighTierContext());
    new SchedulePhase(graph.getOptions()).apply(graph);
}
Also used : LoopPeelingPhase(org.graalvm.compiler.loop.phases.LoopPeelingPhase) SchedulePhase(org.graalvm.compiler.phases.schedule.SchedulePhase) DefaultLoopPolicies(org.graalvm.compiler.loop.DefaultLoopPolicies) Test(org.junit.Test)

Aggregations

DefaultLoopPolicies (org.graalvm.compiler.loop.DefaultLoopPolicies)6 CanonicalizerPhase (org.graalvm.compiler.phases.common.CanonicalizerPhase)5 StructuredGraph (org.graalvm.compiler.nodes.StructuredGraph)4 LoopFullUnrollPhase (org.graalvm.compiler.loop.phases.LoopFullUnrollPhase)3 PhaseContext (org.graalvm.compiler.phases.tiers.PhaseContext)3 Test (org.junit.Test)3 DebugContext (org.graalvm.compiler.debug.DebugContext)2 DebugDumpScope (org.graalvm.compiler.debug.DebugDumpScope)2 LoopPeelingPhase (org.graalvm.compiler.loop.phases.LoopPeelingPhase)2 HighTierContext (org.graalvm.compiler.phases.tiers.HighTierContext)2 PartialEscapePhase (org.graalvm.compiler.virtual.phases.ea.PartialEscapePhase)2 LoopUnswitchingPhase (org.graalvm.compiler.loop.phases.LoopUnswitchingPhase)1 LoopBeginNode (org.graalvm.compiler.nodes.LoopBeginNode)1 AllocatedObjectNode (org.graalvm.compiler.nodes.virtual.AllocatedObjectNode)1 CommitAllocationNode (org.graalvm.compiler.nodes.virtual.CommitAllocationNode)1 DeadCodeEliminationPhase (org.graalvm.compiler.phases.common.DeadCodeEliminationPhase)1 LockEliminationPhase (org.graalvm.compiler.phases.common.LockEliminationPhase)1 InliningPhase (org.graalvm.compiler.phases.common.inlining.InliningPhase)1 SchedulePhase (org.graalvm.compiler.phases.schedule.SchedulePhase)1