diff options
author | Evan Cheng <evan.cheng@apple.com> | 2012-09-21 20:04:28 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2012-09-21 20:04:28 +0000 |
commit | b53825b82b90789bb061fe60c72aed492a4427c2 (patch) | |
tree | bcee2cdcd27f092985014c0737fc191b7adef4ed /llvm/lib/CodeGen/LiveStackAnalysis.cpp | |
parent | 747c639c27bc285f90531e19df8dd8181f4415ff (diff) | |
download | bcm5719-llvm-b53825b82b90789bb061fe60c72aed492a4427c2.tar.gz bcm5719-llvm-b53825b82b90789bb061fe60c72aed492a4427c2.zip |
Fix a significant recent(?) regression. StackSlotColoring no longer did anything
because LiveStackAnalysis was not preserved by VirtRegWriter. This caused
big stack usage regression in some cases.
rdar://12340383
llvm-svn: 164408
Diffstat (limited to 'llvm/lib/CodeGen/LiveStackAnalysis.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveStackAnalysis.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveStackAnalysis.cpp b/llvm/lib/CodeGen/LiveStackAnalysis.cpp index 939e795b4a3..f0b522bd7d3 100644 --- a/llvm/lib/CodeGen/LiveStackAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveStackAnalysis.cpp @@ -25,7 +25,10 @@ using namespace llvm; char LiveStacks::ID = 0; -INITIALIZE_PASS(LiveStacks, "livestacks", +INITIALIZE_PASS_BEGIN(LiveStacks, "livestacks", + "Live Stack Slot Analysis", false, false) +INITIALIZE_PASS_DEPENDENCY(SlotIndexes) +INITIALIZE_PASS_END(LiveStacks, "livestacks", "Live Stack Slot Analysis", false, false) char &llvm::LiveStacksID = LiveStacks::ID; |