| 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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 | 440 |
| 441 // Merge Alloca instructions, and lay out the stack. | 441 // Merge Alloca instructions, and lay out the stack. |
| 442 static constexpr bool SortAndCombineAllocas = true; | 442 static constexpr bool SortAndCombineAllocas = true; |
| 443 Func->processAllocas(SortAndCombineAllocas); | 443 Func->processAllocas(SortAndCombineAllocas); |
| 444 Func->dump("After Alloca processing"); | 444 Func->dump("After Alloca processing"); |
| 445 | 445 |
| 446 if (getFlags().getEnableExperimental()) { | 446 if (getFlags().getEnableExperimental()) { |
| 447 Func->localCSE(); | 447 Func->localCSE(); |
| 448 Func->dump("After Local CSE"); | 448 Func->dump("After Local CSE"); |
| 449 } | 449 } |
| 450 if (getFlags().getEnableShortCircuit()) { |
| 451 Func->shortCircuitJumps(); |
| 452 Func->dump("After Short Circuiting"); |
| 453 } |
| 450 | 454 |
| 451 if (!getFlags().getEnablePhiEdgeSplit()) { | 455 if (!getFlags().getEnablePhiEdgeSplit()) { |
| 452 // Lower Phi instructions. | 456 // Lower Phi instructions. |
| 453 Func->placePhiLoads(); | 457 Func->placePhiLoads(); |
| 454 if (Func->hasError()) | 458 if (Func->hasError()) |
| 455 return; | 459 return; |
| 456 Func->placePhiStores(); | 460 Func->placePhiStores(); |
| 457 if (Func->hasError()) | 461 if (Func->hasError()) |
| 458 return; | 462 return; |
| 459 Func->deletePhis(); | 463 Func->deletePhis(); |
| (...skipping 7568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8028 emitGlobal(*Var, SectionSuffix); | 8032 emitGlobal(*Var, SectionSuffix); |
| 8029 } | 8033 } |
| 8030 } | 8034 } |
| 8031 } break; | 8035 } break; |
| 8032 } | 8036 } |
| 8033 } | 8037 } |
| 8034 } // end of namespace X86NAMESPACE | 8038 } // end of namespace X86NAMESPACE |
| 8035 } // end of namespace Ice | 8039 } // end of namespace Ice |
| 8036 | 8040 |
| 8037 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H | 8041 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H |
| OLD | NEW |