OSDN Git Service

[X86] Return SDValue(N, 0) instead of an SDValue() after a successful combine.
authorCraig Topper <craig.topper@intel.com>
Tue, 26 Dec 2017 22:22:58 +0000 (22:22 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 26 Dec 2017 22:22:58 +0000 (22:22 +0000)
commit4ad2702a08e320335007ea37f68e477b0b426c15
tree81cf23ecb5351fe00e6bc96458caa729f1e443e7
parent1ffd3c8c357ccfb97f464f07c5f5efcd73e4e29e
[X86] Return SDValue(N, 0) instead of an SDValue() after a successful combine.

Returning SDValue() means nothing changed, SDValue(N,0) means there was a change but the worklist management was taken care of.

I don't know if this has a real effect other than making sure the combine counter in the DAG combiner gets updated, but it is the correct thing to do.

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