[DAGCombiner] Don't create truncate nodes in (aext (zextload x)) -> (zextload x)...
authorCraig Topper <craig.topper@intel.com>
Thu, 8 Feb 2018 06:04:18 +0000 (06:04 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 8 Feb 2018 06:04:18 +0000 (06:04 +0000)
commit9b9d5274274353ba879aa84741acccda33dbf1cc
treea406afd8eae04736c3c128edba60f1bc3a315618
parenta217e505c3757bcba7c21bc13b24eac3bd8b406d
[DAGCombiner] Don't create truncate nodes in (aext (zextload x)) -> (zextload x) and similar folds. NFCI

The truncate is being used to replace other users of of the load, but we checked that the load only has one use so there are no other uses to replace.

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