mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 08:26:29 +00:00
Reapply r150565 with the typo fix properly merged.
llvm-svn: 150567
This commit is contained in:
parent
76c2e51912
commit
20f1b1b978
@ -582,14 +582,8 @@ void TargetPassConfig::addOptimizedRegAlloc(FunctionPass *RegAllocPass) {
|
||||
//
|
||||
// FIXME: Re-enable coloring with register when it's capable of adding
|
||||
// kill markers.
|
||||
addPass(StackSlotColoringID);
|
||||
|
||||
// Run post-ra machine LICM to hoist reloads / remats.
|
||||
//
|
||||
// FIXME: can this move into MachineLateOptimization?
|
||||
addPass(PostRAMachineLICMID);
|
||||
|
||||
printAndVerify("After StackSlotColoring and postra Machine LICM");
|
||||
if (addPass(StackSlotColoringID) != &NoPassID)
|
||||
printAndVerify("After StackSlotColoring");
|
||||
}
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
@ -598,6 +592,10 @@ void TargetPassConfig::addOptimizedRegAlloc(FunctionPass *RegAllocPass) {
|
||||
|
||||
/// Add passes that optimize machine instructions after register allocation.
|
||||
void TargetPassConfig::addMachineLateOptimization() {
|
||||
// Run post-ra machine LICM to hoist reloads / remats.
|
||||
if (addPass(PostRAMachineLICMID) != &NoPassID)
|
||||
printAndVerify("After postra Machine LICM");
|
||||
|
||||
// Branch folding must be run after regalloc and prolog/epilog insertion.
|
||||
if (addPass(BranchFolderPassID) != &NoPassID)
|
||||
printNoVerify("After BranchFolding");
|
||||
|
Loading…
Reference in New Issue
Block a user