[PATCH] D29541: [DAGCombiner] Leverage add's commutativity
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 4 13:19:29 PST 2017
RKSimon added inline comments.
================
Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1795
+
+SDValue DAGCombiner::visitADDLike(SDValue N0, SDValue N1, SDNode *LocReference) {
+ EVT VT = N0.getValueType();
----------------
Why not replace SDNode *LocReference by const SDLoc &DL?
https://reviews.llvm.org/D29541
More information about the llvm-commits
mailing list