mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
Add a RequireStructuredCFG Field to TargetMachine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196634 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -725,7 +725,10 @@ void TargetPassConfig::addMachineLateOptimization() {
|
||||
printAndVerify("After BranchFolding");
|
||||
|
||||
// Tail duplication.
|
||||
if (addPass(&TailDuplicateID))
|
||||
// Note that duplicating tail just increases code size and degrades
|
||||
// performance for targets that require Structured Control Flow.
|
||||
// In addition it can also make CFG irreducible. Thus we disable it.
|
||||
if (!TM->requiresStructuredCFG() && addPass(&TailDuplicateID))
|
||||
printAndVerify("After TailDuplicate");
|
||||
|
||||
// Copy propagation.
|
||||
|
Reference in New Issue
Block a user