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/SelectionDAG/SelectionDAG.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/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 669526780b..87ea19be86 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -5015,10 +5015,10 @@ MachineMemOperand MemSDNode::getMemOperand() const { dyn_cast<const FrameIndexSDNode>(getBasePtr().getNode()); if (!getSrcValue() && FI) return MachineMemOperand(PseudoSourceValue::getFixedStack(FI->getIndex()), - Flags, 0, Size, getAlignment()); + Flags, 0, Size, getOriginalAlignment()); else return MachineMemOperand(getSrcValue(), Flags, getSrcValueOffset(), - Size, getAlignment()); + Size, getOriginalAlignment()); } /// Profile - Gather unique data for the node. |