diff options
author | Chris Lattner <sabre@nondot.org> | 2003-01-16 02:20:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-01-16 02:20:12 +0000 |
commit | f158da2f78b5bedbffddeb15ff19de647954e645 (patch) | |
tree | df883091472e4d57940ac89318503bfa46029b74 /lib/Target/X86/X86ISelSimple.cpp | |
parent | eafa42388160fa28621934392a7c5a22dbea54d0 (diff) |
Implement code to keep the stack pointer aligned to an 8 byte boundary.
This improves the performance of the power benchmark by a few percent.
This will be neccesary for SSE code, which requires 16 byte alignment of
the stack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5320 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86ISelSimple.cpp')
-rw-r--r-- | lib/Target/X86/X86ISelSimple.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ISelSimple.cpp b/lib/Target/X86/X86ISelSimple.cpp index ee8318f22d..8351f09a07 100644 --- a/lib/Target/X86/X86ISelSimple.cpp +++ b/lib/Target/X86/X86ISelSimple.cpp @@ -386,7 +386,7 @@ void ISel::LoadArgumentsToVirtualRegs(Function &Fn) { // [ESP + 8] -- second argument, if first argument is four bytes in size // ... // - unsigned ArgOffset = 4; + unsigned ArgOffset = 0; // Frame mechanisms handle retaddr slot MachineFrameInfo *MFI = F->getFrameInfo(); for (Function::aiterator I = Fn.abegin(), E = Fn.aend(); I != E; ++I) { |