[llvm] [RISCV][GISEL] Legalize G_VSCALE (PR #85967)

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 20 10:22:05 PDT 2024


================
@@ -374,6 +374,8 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST)
       .clampScalar(0, s32, sXLen)
       .lowerForCartesianProduct({s32, sXLen, p0}, {p0});
 
+  getActionDefinitionsBuilder(G_VSCALE).customFor({sXLen});
----------------
michaelmaitland wrote:

I can add that. This patch is a precommit for G_INSERT and G_EXTRACT which only build sXLen G_VSCALE instructions. So it was not needed for that patch.

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


More information about the llvm-commits mailing list