[llvm-dev] What about multiple MachineMemOperands in one MI (BranchFolding/MachineInstr::mayAlias)?
Matt Arsenault via llvm-dev
llvm-dev at lists.llvm.org
Fri Sep 27 07:33:31 PDT 2019
> On Sep 27, 2019, at 09:07, Björn Pettersson A via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Obviously we do not store into two locations (it is still a single two byte store).
> So is it (always) correct to interpret the list of MachineMemOperands as the instruction will store to one of the locations?
I think it’s bug to have multiple memory operands if the instruction only accesses one location. The operands should have been merged in some way unless the instruction can truly access two distinct addresses
-Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190927/77533110/attachment.html>
More information about the llvm-dev
mailing list