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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 Func->generateLoopInfo(); | 453 Func->generateLoopInfo(); |
454 Func->dump("After loop analysis"); | 454 Func->dump("After loop analysis"); |
455 if (getFlags().getLoopInvariantCodeMotion()) { | 455 if (getFlags().getLoopInvariantCodeMotion()) { |
456 Func->loopInvariantCodeMotion(); | 456 Func->loopInvariantCodeMotion(); |
457 Func->dump("After LICM"); | 457 Func->dump("After LICM"); |
458 } | 458 } |
459 | 459 |
460 if (getFlags().getLocalCSE() != Ice::LCSE_Disabled) { | 460 if (getFlags().getLocalCSE() != Ice::LCSE_Disabled) { |
461 Func->localCSE(getFlags().getLocalCSE() == Ice::LCSE_EnabledSSA); | 461 Func->localCSE(getFlags().getLocalCSE() == Ice::LCSE_EnabledSSA); |
462 Func->dump("After Local CSE"); | 462 Func->dump("After Local CSE"); |
| 463 Func->floatConstantCSE(); |
463 } | 464 } |
464 if (getFlags().getEnableShortCircuit()) { | 465 if (getFlags().getEnableShortCircuit()) { |
465 Func->shortCircuitJumps(); | 466 Func->shortCircuitJumps(); |
466 Func->dump("After Short Circuiting"); | 467 Func->dump("After Short Circuiting"); |
467 } | 468 } |
468 | 469 |
469 if (!getFlags().getEnablePhiEdgeSplit()) { | 470 if (!getFlags().getEnablePhiEdgeSplit()) { |
470 // Lower Phi instructions. | 471 // Lower Phi instructions. |
471 Func->placePhiLoads(); | 472 Func->placePhiLoads(); |
472 if (Func->hasError()) | 473 if (Func->hasError()) |
(...skipping 7610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8083 emitGlobal(*Var, SectionSuffix); | 8084 emitGlobal(*Var, SectionSuffix); |
8084 } | 8085 } |
8085 } | 8086 } |
8086 } break; | 8087 } break; |
8087 } | 8088 } |
8088 } | 8089 } |
8089 } // end of namespace X86NAMESPACE | 8090 } // end of namespace X86NAMESPACE |
8090 } // end of namespace Ice | 8091 } // end of namespace Ice |
8091 | 8092 |
8092 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H | 8093 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H |
OLD | NEW |