[PATCH] D146835: [RISCV] Enable usubo formation in CodeGenPrepare.

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 24 11:41:48 PDT 2023


reames added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.h:499
 
-    return TargetLowering::shouldFormOverflowOp(Opcode, VT, MathUsed);
+    // Pass ISD::UADDO to bypass the default behavior disabling ISD::USUBO.
+    return TargetLowering::shouldFormOverflowOp(ISD::UADDO, VT, MathUsed);
----------------
Doesn't this also enable multiply as well?  Do we want to?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D146835



More information about the llvm-commits mailing list