diff options
author | Eli Friedman <efriedma@quicinc.com> | 2020-04-07 14:05:29 -0700 |
---|---|---|
committer | Eli Friedman <efriedma@quicinc.com> | 2020-04-14 15:29:41 -0700 |
commit | 2876b3eef3881a2a6304afc34465c597ac31cec9 (patch) | |
tree | f9506d56574be81f7a7b744a0bb48c10a15cb10a /llvm/lib/Support/StringExtras.cpp | |
parent | 5ea28196f19df0e051cf834289d85423a49a84c1 (diff) | |
download | llvm-2876b3eef3881a2a6304afc34465c597ac31cec9.zip llvm-2876b3eef3881a2a6304afc34465c597ac31cec9.tar.gz llvm-2876b3eef3881a2a6304afc34465c597ac31cec9.tar.bz2 |
[SelectionDAG] Always preserve offset in MachinePointerInfo
Previously, getWithOffset() would drop the offset if the base was null.
Because of this, MachineMemOperand would return the wrong result from
getAlign() in these cases. MachineMemOperand stores the alignment of
the pointer without the offset.
A bunch of MIR tests changed because we print the offset now.
Split off from D77687.
Differential Revision: https://reviews.llvm.org/D78049
Diffstat (limited to 'llvm/lib/Support/StringExtras.cpp')
0 files changed, 0 insertions, 0 deletions