[PATCH] D118635: [GlobalISel] Combine: (G_*MULO x, 0) -> 0 + no carry out

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 1 02:22:56 PST 2022


foad added inline comments.


================
Comment at: llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp:4590
+    B.buildConstant(Dst, 0);
+    B.buildConstant(Carry, 0);
+  };
----------------
How does this work? Don't you need to build a single instruction that has two results (just like G_*MULO)?


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

https://reviews.llvm.org/D118635



More information about the llvm-commits mailing list