[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)
commita914fa4dd881af669dba66e68677116f0436d1ed
tree3130891c92c4293b21cca7999b26f1a25bb9f138
parent64c3fe9103d05ed7f327c5559c3318187789033f
[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.

llvm-svn: 352291
llvm/lib/Target/X86/X86ISelLowering.cpp