[PATCH] D129666: [SDAG] Remove single-result restriction on commutative CSE

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 13 10:50:04 PDT 2022


RKSimon added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1872
-  if (!RV.getNode() && TLI.isCommutativeBinOp(N->getOpcode()) &&
-      N->getNumValues() == 1) {
     SDValue N0 = N->getOperand(0);
----------------
Do we know why this limit was here in the first place?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129666



More information about the llvm-commits mailing list