OSDN Git Service

[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)
commit1176aede9201c3836633a8a7282a5ec6d395b6fe
treed4c97394fea0005c668148ab6cf13e42772b8b94
parent4892373b3248043af765e3f410b2ad1e4fa7619e
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@324562 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp