summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86TargetMachine.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-11-26 22:55:05 +0000
committerChad Rosier <mcrosier@apple.com>2012-11-26 22:55:05 +0000
commit4179e3f5131d0d6cf3663d83588b71f7b4442003 (patch)
tree60fa7cbcdcd5353241a16913536e6d7aae88996b /llvm/lib/Target/X86/X86TargetMachine.cpp
parent9407e50b041301bbd7ba458bc910db94b94d5da3 (diff)
downloadbcm5719-llvm-4179e3f5131d0d6cf3663d83588b71f7b4442003.tar.gz
bcm5719-llvm-4179e3f5131d0d6cf3663d83588b71f7b4442003.zip
Remove the X86 Maximal Stack Alignment Check pass as it is no longer necessary.
This pass was conservative in that it always reserved the FP to enable dynamic stack realignment, which allowed the RA to use aligned spills for vector registers. This happens even when spills were not necessary. The RA has since been improved to use unaligned spills when necessary. The new behavior is to realign the stack if the frame pointer was already reserved for some other reason, but don't reserve the frame pointer just because a function contains vector virtual registers. Part of rdar://12719844 llvm-svn: 168627
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/X86/X86TargetMachine.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp
index 158f9dc0669..7ee9408f8b0 100644
--- a/llvm/lib/Target/X86/X86TargetMachine.cpp
+++ b/llvm/lib/Target/X86/X86TargetMachine.cpp
@@ -171,7 +171,6 @@ bool X86PassConfig::addInstSelector() {
}
bool X86PassConfig::addPreRegAlloc() {
- addPass(createX86MaxStackAlignmentHeuristicPass());
return false; // -print-machineinstr shouldn't print after this.
}
OpenPOWER on IntegriCloud