mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
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
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user