]> granicus.if.org Git - llvm/commit
[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)
commit7a4d0b9a1047b859d6af346e473437576d2790ba
tree1bfdbbe79ac530844c4a4daf417fc49bda9214f4
parente2f3e50df6a874d33d5fe1eca7d9cede3906fc9a
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349222 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelDAGToDAG.cpp