[PATCH] D29528: [DAGCombiner] Push truncate through adde when the carry isn't used.

Amaury SECHET via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 4 13:24:11 PST 2017

deadalnix marked an inline comment as done.
deadalnix added inline comments.

Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:7874
+      !N0.getNode()->hasAnyUseOfValue(1) &&
+      TLI.isOperationLegalOrCustom(ISD::ADDE, VT)) {
+    auto SL = SDLoc(N);
arsenm wrote:
> Usually this is done as !LegalizeDAG || TLI.isOperationLegal..
There is no wrapper for this ?


More information about the llvm-commits mailing list