OSDN Git Service

[X86] combineAddOrSubToADCOrSBB/combineCarryThroughADD - use oneuse for entire SDNode
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 26 Jan 2019 21:29:16 +0000 (21:29 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 26 Jan 2019 21:29:16 +0000 (21:29 +0000)
commit901b4d6ba1da6bff6c30fc9932f5c8ca5c3d0a79
treeeb1ecc45ad868284c9f0379652b139748b339702
parent80e5f43847c08434f9c534a78ccac211f04cc262
[X86] combineAddOrSubToADCOrSBB/combineCarryThroughADD - use oneuse for entire SDNode

Fix issue noted in D57281 that only tested the one use for the SDValue (the result flag), not the entire SUB.

I've added the getNode() to make it clearer what is intended than just the -> redirection.

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