AMDGPU: Change API for checking for exec modification
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 18 Jun 2019 12:48:36 +0000 (12:48 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 18 Jun 2019 12:48:36 +0000 (12:48 +0000)
commitf39f3bd056fa99fb8bc437d7fa5932c85eea8d8e
treee7ae5744f702ff6b3402d0d3e05996a5fbbfab71
parentc99d9aee00753dc878e403c4088227a25b45e4b2
AMDGPU: Change API for checking for exec modification

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
possibly 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 use list has
any particular order.

llvm-svn: 363675
llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.h