diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-01-19 18:31:11 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-01-19 18:31:11 +0000 |
commit | e45ab8a0a90e4f3a59d8c38038ae3e495ee1fef3 (patch) | |
tree | c2cb2db266d2fc51246754d560fdf5b1ba792e8d /lib/Target/X86/X86TargetMachine.cpp | |
parent | c0404b3715151d020dda074740bbdaa794f9328a (diff) |
For aligned load/store instructions, it's only required to know whether a
function can support dynamic stack realignment. That's a much easier question
to answer at instruction selection stage than whether the function actually
will have dynamic alignment prologue. This allows the removal of the
stack alignment heuristic pass, and improves code quality for cases where
the heuristic would result in dynamic alignment code being generated when
it was not strictly necessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93885 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r-- | lib/Target/X86/X86TargetMachine.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index 445318e64f..731c3ab5b2 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -157,9 +157,6 @@ bool X86TargetMachine::addInstSelector(PassManagerBase &PM, bool X86TargetMachine::addPreRegAlloc(PassManagerBase &PM, CodeGenOpt::Level OptLevel) { - // Calculate and set max stack object alignment early, so we can decide - // whether we will need stack realignment (and thus FP). - PM.add(createMaxStackAlignmentCalculatorPass()); return false; // -print-machineinstr shouldn't print after this. } |