| 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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 } | 436 } |
| 437 | 437 |
| 438 genTargetHelperCalls(); | 438 genTargetHelperCalls(); |
| 439 Func->dump("After target helper call insertion"); | 439 Func->dump("After target helper call insertion"); |
| 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()) { |
| 447 Func->localCSE(); |
| 448 Func->dump("After Local CSE"); |
| 449 } |
| 450 |
| 446 if (!getFlags().getEnablePhiEdgeSplit()) { | 451 if (!getFlags().getEnablePhiEdgeSplit()) { |
| 447 // Lower Phi instructions. | 452 // Lower Phi instructions. |
| 448 Func->placePhiLoads(); | 453 Func->placePhiLoads(); |
| 449 if (Func->hasError()) | 454 if (Func->hasError()) |
| 450 return; | 455 return; |
| 451 Func->placePhiStores(); | 456 Func->placePhiStores(); |
| 452 if (Func->hasError()) | 457 if (Func->hasError()) |
| 453 return; | 458 return; |
| 454 Func->deletePhis(); | 459 Func->deletePhis(); |
| 455 if (Func->hasError()) | 460 if (Func->hasError()) |
| (...skipping 7486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7942 emitGlobal(*Var, SectionSuffix); | 7947 emitGlobal(*Var, SectionSuffix); |
| 7943 } | 7948 } |
| 7944 } | 7949 } |
| 7945 } break; | 7950 } break; |
| 7946 } | 7951 } |
| 7947 } | 7952 } |
| 7948 } // end of namespace X86NAMESPACE | 7953 } // end of namespace X86NAMESPACE |
| 7949 } // end of namespace Ice | 7954 } // end of namespace Ice |
| 7950 | 7955 |
| 7951 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H | 7956 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H |
| OLD | NEW |