summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/StackColoring.cpp
diff options
context:
space:
mode:
authorPaul Robinson <paul_robinson@playstation.sony.com>2014-03-31 17:43:35 +0000
committerPaul Robinson <paul_robinson@playstation.sony.com>2014-03-31 17:43:35 +0000
commit7c99ec5b99f0a25838b9f27c0d3341b9e88d1531 (patch)
tree89a2e271061957826498db0796c94226b56a21e7 /llvm/lib/CodeGen/StackColoring.cpp
parentc6a57ea4e9a9a7ece817c844fb1048e4a6b6816b (diff)
downloadbcm5719-llvm-7c99ec5b99f0a25838b9f27c0d3341b9e88d1531.tar.gz
bcm5719-llvm-7c99ec5b99f0a25838b9f27c0d3341b9e88d1531.zip
Disable each MachineFunctionPass for 'optnone' functions, unless that
pass normally runs at optimization level None, or is part of the register allocation pipeline. llvm-svn: 205228
Diffstat (limited to 'llvm/lib/CodeGen/StackColoring.cpp')
-rw-r--r--llvm/lib/CodeGen/StackColoring.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/StackColoring.cpp b/llvm/lib/CodeGen/StackColoring.cpp
index 9a79a3afec6..7b1de85baa7 100644
--- a/llvm/lib/CodeGen/StackColoring.cpp
+++ b/llvm/lib/CodeGen/StackColoring.cpp
@@ -640,6 +640,9 @@ void StackColoring::expungeSlotMap(DenseMap<int, int> &SlotRemap,
}
bool StackColoring::runOnMachineFunction(MachineFunction &Func) {
+ if (skipOptnoneFunction(*Func.getFunction()))
+ return false;
+
DEBUG(dbgs() << "********** Stack Coloring **********\n"
<< "********** Function: "
<< ((const Value*)Func.getFunction())->getName() << '\n');
OpenPOWER on IntegriCloud