[DAGCombiner] Avoid creating truncate nodes in (zext (and (load)))->(and (zextload...
authorCraig Topper <craig.topper@intel.com>
Thu, 8 Feb 2018 04:38:04 +0000 (04:38 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 8 Feb 2018 04:38:04 +0000 (04:38 +0000)
commitcbfe41ac2f01886ac44815a14e5b1178d05067f0
tree553966daad83a60be1ec6dd0d34b764ba28797b0
parentbf4ed42606acd76ede3b19180c5881d06839d673
[DAGCombiner] Avoid creating truncate nodes in (zext (and (load)))->(and (zextload)) fold until we know for sure we're going to need it. NFCI

The truncate is only needed if the load has additional users. It used to get passed to extendSetCCUses so was created early, but that's no longer the case.

llvm-svn: 324562
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp