[PATCH] D66380: [SDAG] Fold umul_lohi with 0 or 1 multiplicand

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 18 04:47:18 PDT 2019


RKSimon added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:4292
 
+  // (umul_lohi N0, 0) -> (0, 0)
+  if (isNullConstant(N->getOperand(1))) {
----------------
Do we need a canonicalization of constants to the RHS?


Repository:
  rL LLVM

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

https://reviews.llvm.org/D66380





More information about the llvm-commits mailing list