[style] Remove deprecated phases and comments from low tier
@@ -35,6 +35,7 @@ import org.graalvm.compiler.phases.common.AddressLoweringPhase;
import org.graalvm.compiler.phases.common.AddressLoweringPhase.AddressLowering;
import org.graalvm.compiler.phases.common.CanonicalizerPhase;
import org.graalvm.compiler.phases.common.DeadCodeEliminationPhase;
+import org.graalvm.compiler.phases.common.ExpandLogicPhase;
import org.graalvm.compiler.phases.common.IterativeConditionalEliminationPhase;
import org.graalvm.compiler.phases.common.LoweringPhase;
import org.graalvm.compiler.phases.common.RemoveValueProxyPhase;
@@ -60,18 +61,8 @@ public class OCLLowTier extends TornadoLowTier {
appendPhase(new RemoveValueProxyPhase());
- // appendPhase(new ExpandLogicPhase());
-
- /*
- * Cleanup IsNull checks resulting from MID_TIER/LOW_TIER lowering and
- * ExpandLogic phase.
- */
if (ConditionalElimination.getValue(options)) {
appendPhase(new IterativeConditionalEliminationPhase(canonicalizer, false));
- /*
- * Canonicalizer may create some new ShortCircuitOrNodes so clean them up.
- */
- // appendPhase(new ExpandLogicPhase());
}
appendPhase(new AddressLoweringPhase(addressLowering));
@@ -81,6 +72,7 @@ public class OCLLowTier extends TornadoLowTier {
appendPhase(new DeadCodeEliminationPhase(Required));
appendPhase(new TornadoLoopCanonicalization());
+
appendPhase(new SchedulePhase(SchedulePhase.SchedulingStrategy.LATEST_OUT_OF_LOOPS));
if (TornadoOptions.FEATURE_EXTRACTION) {
