| Index: src/compiler/pipeline.cc
|
| diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc
|
| index ee36f859417f6319b3baafe1c3ce3c09e1a61ddc..a1207a286a571f5d2d27bcf55006b223b93b24e2 100644
|
| --- a/src/compiler/pipeline.cc
|
| +++ b/src/compiler/pipeline.cc
|
| @@ -1550,13 +1550,6 @@ bool PipelineImpl::CreateGraph() {
|
| Run<LoopExitEliminationPhase>();
|
| RunPrintAndVerify("Loop exits eliminated", true);
|
| }
|
| -
|
| - if (!info()->shared_info()->asm_function()) {
|
| - if (FLAG_turbo_load_elimination) {
|
| - Run<LoadEliminationPhase>();
|
| - RunPrintAndVerify("Load eliminated");
|
| - }
|
| - }
|
| }
|
|
|
| // Do some hacky things to prepare for the optimization phase.
|
| @@ -1572,6 +1565,11 @@ bool PipelineImpl::OptimizeGraph(Linkage* linkage) {
|
| PipelineData* data = this->data_;
|
|
|
| if (!data->is_asm()) {
|
| + if (FLAG_turbo_load_elimination) {
|
| + Run<LoadEliminationPhase>();
|
| + RunPrintAndVerify("Load eliminated");
|
| + }
|
| +
|
| if (FLAG_turbo_escape) {
|
| Run<EscapeAnalysisPhase>();
|
| if (data->compilation_failed()) {
|
|
|