[PATCH] D119559: [DAGCombine] Basic combines for AVG nodes.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 11 10:15:47 PST 2022


RKSimon added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:4693
+  if (N0.isUndef() || N1.isUndef())
+    return DAG.getConstant(0, DL, VT);
+
----------------
Why 0 and not the other (not undef) arg? https://alive2.llvm.org/ce/z/tNnJR3


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

https://reviews.llvm.org/D119559



More information about the llvm-commits mailing list