HomePhabricator

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

Description

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

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.

Differential Revision: https://reviews.llvm.org/D58805

Details

Committed
ctopperMar 1 2019, 1:02 PM
Differential Revision
D58805: [X86] Remove IntrArgMemOnly from target specific gather/scatter intrinsics
Parents
rL355227: [X86] Add test case for D58805. NFC
Branches
Unknown
Tags
Unknown