# HG changeset patch # User Thomas Wuerthinger # Date 1363551929 -3600 # Node ID 022ae20329fb4cdae471203ab37b5c7bf413cd4d # Parent 985e5188964fb0024bf179f4d325a61180271851 Rename field. diff -r 985e5188964f -r 022ae20329fb graal/com.oracle.graal.phases/src/com/oracle/graal/phases/schedule/SchedulePhase.java --- a/graal/com.oracle.graal.phases/src/com/oracle/graal/phases/schedule/SchedulePhase.java Sun Mar 17 21:23:14 2013 +0100 +++ b/graal/com.oracle.graal.phases/src/com/oracle/graal/phases/schedule/SchedulePhase.java Sun Mar 17 21:25:29 2013 +0100 @@ -134,14 +134,14 @@ private BlockMap> blockToNodesMap; private final Map> phantomUsages = new IdentityHashMap<>(); private final Map> phantomInputs = new IdentityHashMap<>(); - private final SchedulingStrategy strategy; + private final SchedulingStrategy selectedStrategy; public SchedulePhase() { this(GraalOptions.OptScheduleOutOfLoops ? SchedulingStrategy.LATEST_OUT_OF_LOOPS : SchedulingStrategy.LATEST); } public SchedulePhase(SchedulingStrategy strategy) { - this.strategy = strategy; + this.selectedStrategy = strategy; } @Override @@ -150,7 +150,7 @@ earliestCache = graph.createNodeMap(); blockToNodesMap = new BlockMap<>(cfg); - if (GraalOptions.MemoryAwareScheduling && strategy != SchedulingStrategy.EARLIEST && graph.getNodes(FloatingReadNode.class).isNotEmpty()) { + if (GraalOptions.MemoryAwareScheduling && selectedStrategy != SchedulingStrategy.EARLIEST && graph.getNodes(FloatingReadNode.class).isNotEmpty()) { assignBlockToNodes(graph, SchedulingStrategy.EARLIEST); sortNodesWithinBlocks(graph, SchedulingStrategy.EARLIEST); @@ -162,8 +162,8 @@ blockToNodesMap = new BlockMap<>(cfg); } - assignBlockToNodes(graph, strategy); - sortNodesWithinBlocks(graph, strategy); + assignBlockToNodes(graph, selectedStrategy); + sortNodesWithinBlocks(graph, selectedStrategy); } /**