summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetInstrInfoImpl.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-09-21 19:47:04 +0000
committerDan Gohman <gohman@apple.com>2009-09-21 19:47:04 +0000
commite7c8242baa1da5fb800661894496028218c0ff85 (patch)
tree26d7cbb158522e0e9461229e313d36d34e761cfc /llvm/lib/CodeGen/TargetInstrInfoImpl.cpp
parent38c3ae9bc40bda069df0c7a564503e22d8a257c1 (diff)
downloadbcm5719-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/TargetInstrInfoImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetInstrInfoImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetInstrInfoImpl.cpp b/llvm/lib/CodeGen/TargetInstrInfoImpl.cpp
index 8aca0ccd424..f184cb74f0a 100644
--- a/llvm/lib/CodeGen/TargetInstrInfoImpl.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud