mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-02 09:16:40 +00:00
Enable machine code verification after the late machine optimization passes.
Branch folding invalidates liveness and disables liveness verification on some targets. llvm-svn: 153597
This commit is contained in:
parent
37927fe83c
commit
f5df00f0fb
@ -601,15 +601,15 @@ void TargetPassConfig::addOptimizedRegAlloc(FunctionPass *RegAllocPass) {
|
|||||||
void TargetPassConfig::addMachineLateOptimization() {
|
void TargetPassConfig::addMachineLateOptimization() {
|
||||||
// Branch folding must be run after regalloc and prolog/epilog insertion.
|
// Branch folding must be run after regalloc and prolog/epilog insertion.
|
||||||
if (addPass(BranchFolderPassID) != &NoPassID)
|
if (addPass(BranchFolderPassID) != &NoPassID)
|
||||||
printNoVerify("After BranchFolding");
|
printAndVerify("After BranchFolding");
|
||||||
|
|
||||||
// Tail duplication.
|
// Tail duplication.
|
||||||
if (addPass(TailDuplicateID) != &NoPassID)
|
if (addPass(TailDuplicateID) != &NoPassID)
|
||||||
printNoVerify("After TailDuplicate");
|
printAndVerify("After TailDuplicate");
|
||||||
|
|
||||||
// Copy propagation.
|
// Copy propagation.
|
||||||
if (addPass(MachineCopyPropagationID) != &NoPassID)
|
if (addPass(MachineCopyPropagationID) != &NoPassID)
|
||||||
printNoVerify("After copy propagation pass");
|
printAndVerify("After copy propagation pass");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Add standard basic block placement passes.
|
/// Add standard basic block placement passes.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user