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 | 28f02fdd76f4efc05d14649e0eec90ce8e71e17e (patch) | |
tree | 4871a48055d37956277077fbc4bea72781807c57 /lib/CodeGen/TargetInstrInfoImpl.cpp | |
parent | 78a130a31cb8eca6f4c46f80a8cc4e0aff472be0 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82473 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInstrInfoImpl.cpp')
-rw-r--r-- | lib/CodeGen/TargetInstrInfoImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/TargetInstrInfoImpl.cpp b/lib/CodeGen/TargetInstrInfoImpl.cpp index 8aca0ccd42..f184cb74f0 100644 --- a/lib/CodeGen/TargetInstrInfoImpl.cpp +++ b/lib/CodeGen/TargetInstrInfoImpl.cpp @@ -205,7 +205,7 @@ TargetInstrInfo::foldMemoryOperand(MachineFunction &MF, assert(MFI.getObjectOffset(FrameIndex) != -1); MachineMemOperand MMO(PseudoSourceValue::getFixedStack(FrameIndex), Flags, - MFI.getObjectOffset(FrameIndex), + /*Offset=*/0, MFI.getObjectSize(FrameIndex), MFI.getObjectAlignment(FrameIndex)); NewMI->addMemOperand(MF, MMO); |