[PATCH] D58805: [X86] Remove IntrArgMemOnly from target specific gather/scatter intrinsics

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 28 17:33:35 PST 2019


craig.topper created this revision.
craig.topper added reviewers: efriedma, hfinkel, RKSimon, spatel.
Herald added a subscriber: jdoerfert.

IntrArgMemOnly implies that only memory pointed to by pointer typed arguments will be accessed. But these intrinsics allow you to pass null to the pointer argument and put the full address into the index argument. Other passes won't be able to understand this.

A colleague found that ISPC was creating gathers like this and then dead store elimination removed some stores because it didn't understand what the gather was doing since the pointer argument was null.


https://reviews.llvm.org/D58805

Files:
  include/llvm/IR/IntrinsicsX86.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58805.188819.patch
Type: text/x-patch
Size: 29537 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190301/711385ad/attachment.bin>


More information about the llvm-commits mailing list