[llvm] [RISCV][GISel] Legalize G_SMULO/G_UMULO (PR #67635)

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 28 08:37:54 PDT 2023


================
@@ -145,13 +145,21 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST) {
         .legalFor({XLenLLT})
         .lower();
     // clang-format on
+
+    getActionDefinitionsBuilder({G_SMULO, G_UMULO})
----------------
tschuett wrote:

I am maybe blind, but could hoist them above the if? They look similar.

https://github.com/llvm/llvm-project/pull/67635


More information about the llvm-commits mailing list