diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-11-26 22:55:05 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-11-26 22:55:05 +0000 |
commit | 1243922fc1a1e3d2681ed9e78503eeabd875ba93 (patch) | |
tree | e10f57435c2c026887a1f67c516df20c98a83ddb /lib/Target/X86/X86TargetMachine.cpp | |
parent | bb8ddc7e4ff1f06c7289865bbf9e1fa4632d1c8e (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168627 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r-- | lib/Target/X86/X86TargetMachine.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index 158f9dc066..7ee9408f8b 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/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. } |