aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/SmallVector.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-07-19 20:10:44 +0000
committerCraig Topper <craig.topper@intel.com>2018-07-19 20:10:44 +0000
commit9888670c6be9d811e275e3faf40eb694d551a6a2 (patch)
treef295aebdc9b5198b6f5489482a9d8e3708e0b613 /llvm/lib/Support/SmallVector.cpp
parent310a4c2bfe94b54e6d4ad21cdb1dce5d1525e1da (diff)
downloadllvm-9888670c6be9d811e275e3faf40eb694d551a6a2.zip
llvm-9888670c6be9d811e275e3faf40eb694d551a6a2.tar.gz
llvm-9888670c6be9d811e275e3faf40eb694d551a6a2.tar.bz2
[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. llvm-svn: 337491
Diffstat (limited to 'llvm/lib/Support/SmallVector.cpp')
0 files changed, 0 insertions, 0 deletions