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

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 28 09:58:56 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 have a feeling that you are going for coverage and not performance. Could you instead do a `custom` legalization, i.e. RISC-V specific and not generic lower?

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


More information about the llvm-commits mailing list