[LLVMdev] AliasInfo for MachineMemOperands

Jeroen Dobbelaere jeroen.dobbelaere at gmail.com
Wed Feb 4 07:47:31 PST 2015


Hi,

when looking at the available Alias Information after lowering,
it seems that the expansion of 'llvm.memcpy.p0i8.p0i8.i32' (and variants)
onto
load/store machine instructions is resulting in load/stores for which no
AAInfo is available in the MachineMemOperand.

Because of this we need to assume that they may alias with anything... This
is painful if these copies come from copying smaller structs around..

Would the correct solution here be to propagate the tbaa ref on the
intrinsic to the load/stores ? Or are there still more subtle dangers (like
having a Value in the MachineMemOperand that does not relate to anything ?)


Greetings,

Jeroen Dobbelaere
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150204/000eb344/attachment.html>


More information about the llvm-dev mailing list