[X86] Make hasNoCarryFlagUses/hasNoSignedComparisonUses take an SDValue that indicate...
authorCraig Topper <craig.topper@intel.com>
Sat, 15 Dec 2018 01:07:16 +0000 (01:07 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 15 Dec 2018 01:07:16 +0000 (01:07 +0000)
commit5c304eac4128993af91acd5469ce4b78901eeae3
tree7bb78390cc71ee727bc6f55c592d2201490f25dd
parentfeef720bb86001ba3173d5022fd329fb385c7794
[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
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp