This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Change API for checking for exec modification
ClosedPublic

Authored by arsenm on Jun 12 2019, 4:38 PM.

Details

Summary

Invert the name and return value to better reflect the imprecise
nature.

Force passing in the DefMI, since it's known in the 2 users and could
ossibly fail for an arbitrary vreg.

Allow specifying a specific user instruction. Scan through use
instructions, instead of use operands. Add scan thresholds instead of
searching infinitely.

Stop using a set to track seen uses. I didn't understand this usage,
or why it would not check the last use. I don't think the order of the
use list has any particular order.

Diff Detail

Event Timeline

arsenm created this revision.Jun 12 2019, 4:38 PM
arsenm updated this revision to Diff 204385.Jun 12 2019, 4:40 PM
This revision is now accepted and ready to land.Jun 16 2019, 11:32 AM
arsenm closed this revision.Jun 18 2019, 6:17 AM

r363675