summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2016-05-27 22:56:49 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2016-05-27 22:56:49 +0000
commit04f8e06696c40cadadb68248b320dec822eb5f7a (patch)
tree86f9e07997a2e9e41b1493e3174aa6b28d1f03e1 /llvm/lib
parent1e75fa4ad81814439ddbb9cec91c6b5cc2bb4b6f (diff)
downloadbcm5719-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')
-rw-r--r--llvm/lib/CodeGen/StackColoring.cpp6
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();
}
OpenPOWER on IntegriCloud