diff options
| author | Andrew Kaylor <andrew.kaylor@intel.com> | 2016-05-27 22:56:49 +0000 |
|---|---|---|
| committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2016-05-27 22:56:49 +0000 |
| commit | 04f8e06696c40cadadb68248b320dec822eb5f7a (patch) | |
| tree | 86f9e07997a2e9e41b1493e3174aa6b28d1f03e1 /llvm/lib/CodeGen | |
| parent | 1e75fa4ad81814439ddbb9cec91c6b5cc2bb4b6f (diff) | |
| download | bcm5719-llvm-04f8e06696c40cadadb68248b320dec822eb5f7a.tar.gz bcm5719-llvm-04f8e06696c40cadadb68248b320dec822eb5f7a.zip | |
Update the stack coloring pass to remove lifetime intrinsics in the optnone/opt-bisect skip case.
Differential Revision: http://reviews.llvm.org/D20453
llvm-svn: 271068
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/StackColoring.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/StackColoring.cpp b/llvm/lib/CodeGen/StackColoring.cpp index 281836e909d..17c01dc3c3f 100644 --- a/llvm/lib/CodeGen/StackColoring.cpp +++ b/llvm/lib/CodeGen/StackColoring.cpp @@ -963,9 +963,6 @@ void StackColoring::expungeSlotMap(DenseMap<int, int> &SlotRemap, } bool StackColoring::runOnMachineFunction(MachineFunction &Func) { - if (skipFunction(*Func.getFunction())) - return false; - DEBUG(dbgs() << "********** Stack Coloring **********\n" << "********** Function: " << ((const Value*)Func.getFunction())->getName() << '\n'); @@ -1005,7 +1002,8 @@ bool StackColoring::runOnMachineFunction(MachineFunction &Func) { // Don't continue because there are not enough lifetime markers, or the // stack is too small, or we are told not to optimize the slots. - if (NumMarkers < 2 || TotalSize < 16 || DisableColoring) { + if (NumMarkers < 2 || TotalSize < 16 || DisableColoring || + skipFunction(*Func.getFunction())) { DEBUG(dbgs()<<"Will not try to merge slots.\n"); return removeAllMarkers(); } |

