[PATCH] D32916: [DAGCombine] (addcarry 0, 0, X) -> (ext/trunc X)
Amaury SECHET via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 10 10:21:33 PDT 2017
deadalnix added inline comments.
================
Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:2140
if (N0C && !N1C)
- return DAG.getNode(ISD::ADDCARRY, SDLoc(N), N->getVTList(),
- N1, N0, CarryIn);
+ return DAG.getNode(ISD::ADDCARRY, DL, N->getVTList(), N1, N0, CarryIn);
----------------
filcab wrote:
> Please split these changes before committing the patch.
I put these change with the patch because there is no need to precompute DL if we don't have the patch. If you feel strongly about this I can just commit this as a NFC and rebase the patch.
https://reviews.llvm.org/D32916
More information about the llvm-commits
mailing list