Commit fc881eb7 authored by bmeurer's avatar bmeurer Committed by Commit bot

[turbofan] Run EarlyOptimizationPhase after we nuked the types.

It's not safe to look at the types after SimplifiedLowering runs,
as the types are unreliable by that time. So better make sure we
nuke the types first.

R=jarin@chromium.org

Review-Url: https://codereview.chromium.org/2032613006
Cr-Commit-Position: refs/heads/master@{#36671}
parent 7ca611d1
...@@ -1417,10 +1417,6 @@ bool PipelineImpl::CreateGraph() { ...@@ -1417,10 +1417,6 @@ bool PipelineImpl::CreateGraph() {
// Select representations. // Select representations.
Run<RepresentationSelectionPhase>(); Run<RepresentationSelectionPhase>();
RunPrintAndVerify("Representations selected"); RunPrintAndVerify("Representations selected");
// Run early optimization pass.
Run<EarlyOptimizationPhase>();
RunPrintAndVerify("Early optimized", true);
} }
#ifdef DEBUG #ifdef DEBUG
...@@ -1440,6 +1436,10 @@ bool PipelineImpl::CreateGraph() { ...@@ -1440,6 +1436,10 @@ bool PipelineImpl::CreateGraph() {
RunPrintAndVerify("Untyped", true); RunPrintAndVerify("Untyped", true);
#endif #endif
// Run early optimization pass.
Run<EarlyOptimizationPhase>();
RunPrintAndVerify("Early optimized", true);
data->EndPhaseKind(); data->EndPhaseKind();
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment