[PATCH] D141665: [DAGCombine][AArch64][ARM] Combine abd(sub(x, y)) to abd if the sub is nsw

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 13 14:15:21 PST 2023


RKSimon added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:10156
+    return DAG.getNode(ISD::ABDS, SDLoc(N), VT, N->getOperand(0).getOperand(0),
+                       N->getOperand(0).getOperand(1));
+
----------------
Worth moving this inside combineABSToABD?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141665/new/

https://reviews.llvm.org/D141665



More information about the llvm-commits mailing list