summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-12-15 01:07:16 +0000
committerCraig Topper <craig.topper@intel.com>2018-12-15 01:07:16 +0000
commit5c304eac4128993af91acd5469ce4b78901eeae3 (patch)
tree7bb78390cc71ee727bc6f55c592d2201490f25dd /llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
parentfeef720bb86001ba3173d5022fd329fb385c7794 (diff)
downloadbcm5719-llvm-5c304eac4128993af91acd5469ce4b78901eeae3.tar.gz
bcm5719-llvm-5c304eac4128993af91acd5469ce4b78901eeae3.zip
[X86] Make hasNoCarryFlagUses/hasNoSignedComparisonUses take an SDValue that indicates which result is the flag result. NFCI
hasNoCarryFlagUses hardcoded that the flag result is 1 and used that to filter which uses were of interest. hasNoSignedComparisonUses just assumes the only result is flags and checks whether any user of the node is a CopyToReg instruction. After this patch we now do a result number check in both and rely on the caller to provide the result number. This shouldn't change behavior it was just an odd difference between the two functions that I noticed. llvm-svn: 349222
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud