| OLD | NEW |
| 1 //===- subzero/src/IceTargetLoweringX86BaseImpl.h - x86 lowering -*- C++ -*-==// | 1 //===- subzero/src/IceTargetLoweringX86BaseImpl.h - x86 lowering -*- C++ -*-==// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 /// | 9 /// |
| 10 /// \file | 10 /// \file |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 // TODO(stichnot,ascull): currently only used for regalloc not | 448 // TODO(stichnot,ascull): currently only used for regalloc not |
| 449 // expensive high level optimizations which could be focused on potentially | 449 // expensive high level optimizations which could be focused on potentially |
| 450 // hot code. | 450 // hot code. |
| 451 Func->generateLoopInfo(); | 451 Func->generateLoopInfo(); |
| 452 Func->dump("After loop analysis"); | 452 Func->dump("After loop analysis"); |
| 453 if (getFlags().getLoopInvariantCodeMotion()) { | 453 if (getFlags().getLoopInvariantCodeMotion()) { |
| 454 Func->loopInvariantCodeMotion(); | 454 Func->loopInvariantCodeMotion(); |
| 455 Func->dump("After LICM"); | 455 Func->dump("After LICM"); |
| 456 } | 456 } |
| 457 | 457 |
| 458 if (getFlags().getEnableExperimental()) { | 458 if (getFlags().getLocalCSE() != Ice::LCSE_Disabled) { |
| 459 Func->localCSE(); | 459 Func->localCSE(getFlags().getLocalCSE() == Ice::LCSE_EnabledSSA); |
| 460 Func->dump("After Local CSE"); | 460 Func->dump("After Local CSE"); |
| 461 } | 461 } |
| 462 if (getFlags().getEnableShortCircuit()) { | 462 if (getFlags().getEnableShortCircuit()) { |
| 463 Func->shortCircuitJumps(); | 463 Func->shortCircuitJumps(); |
| 464 Func->dump("After Short Circuiting"); | 464 Func->dump("After Short Circuiting"); |
| 465 } | 465 } |
| 466 | 466 |
| 467 if (!getFlags().getEnablePhiEdgeSplit()) { | 467 if (!getFlags().getEnablePhiEdgeSplit()) { |
| 468 // Lower Phi instructions. | 468 // Lower Phi instructions. |
| 469 Func->placePhiLoads(); | 469 Func->placePhiLoads(); |
| (...skipping 7601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8071 emitGlobal(*Var, SectionSuffix); | 8071 emitGlobal(*Var, SectionSuffix); |
| 8072 } | 8072 } |
| 8073 } | 8073 } |
| 8074 } break; | 8074 } break; |
| 8075 } | 8075 } |
| 8076 } | 8076 } |
| 8077 } // end of namespace X86NAMESPACE | 8077 } // end of namespace X86NAMESPACE |
| 8078 } // end of namespace Ice | 8078 } // end of namespace Ice |
| 8079 | 8079 |
| 8080 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H | 8080 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H |
| OLD | NEW |