diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-21 19:47:04 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-21 19:47:04 +0000 |
commit | e7c8242baa1da5fb800661894496028218c0ff85 (patch) | |
tree | 26d7cbb158522e0e9461229e313d36d34e761cfc /llvm/lib/CodeGen/StackSlotColoring.cpp | |
parent | 38c3ae9bc40bda069df0c7a564503e22d8a257c1 (diff) | |
download | bcm5719-llvm-e7c8242baa1da5fb800661894496028218c0ff85.tar.gz bcm5719-llvm-e7c8242baa1da5fb800661894496028218c0ff85.zip |
Change MachineMemOperand's alignment value to be the alignment of
the base pointer, without the offset. This matches MemSDNode's
new alignment behavior, and holds more interesting information.
llvm-svn: 82473
Diffstat (limited to 'llvm/lib/CodeGen/StackSlotColoring.cpp')
-rw-r--r-- | llvm/lib/CodeGen/StackSlotColoring.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StackSlotColoring.cpp b/llvm/lib/CodeGen/StackSlotColoring.cpp index e62c0506b3e..7d88dad6c8c 100644 --- a/llvm/lib/CodeGen/StackSlotColoring.cpp +++ b/llvm/lib/CodeGen/StackSlotColoring.cpp @@ -473,7 +473,7 @@ void StackSlotColoring::RewriteInstruction(MachineInstr *MI, int OldFI, else { MachineMemOperand MMO(PseudoSourceValue::getFixedStack(NewFI), MMOs[i].getFlags(), MMOs[i].getOffset(), - MMOs[i].getSize(), MMOs[i].getAlignment()); + MMOs[i].getSize(), MMOs[i].getBaseAlignment()); MI->addMemOperand(MF, MMO); } } |