OSDN Git Service

[X86] Fix some 'return SDValue()' after DCI.CombineTo instead return the output of...
authorCraig Topper <craig.topper@intel.com>
Thu, 19 Jul 2018 20:10:44 +0000 (20:10 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 19 Jul 2018 20:10:44 +0000 (20:10 +0000)
commit85eba188bc671b0d03486349ee51f45a79d89d86
treead937ee73f9419f16cf3a0958b539820c17a236e
parenta34dfe65428f9dfe9929c1157e5de659360a1c6a
[X86] Fix some 'return SDValue()' after DCI.CombineTo instead return the output of CombineTo

Returning SDValue() means nothing was changed. Returning the result of CombineTo returns the first argument of CombineTo. This is specially detected by DAGCombiner as meaning that something changed, but worklist management was already taken care of.

I think the only real effect of this change is that we now properly update the Statistic the counts the number of combines performed. That's the only thing between the check for null and the check for N in the DAGCombiner.

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