[llvm] [RISCV][GISEL] Legalize G_VSCALE (PR #85967)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 20 10:18:47 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});
----------------
topperc wrote:
Don't you need a clamp scalar if the type isn't sXLen? The vectorizer always uses s32.
https://github.com/llvm/llvm-project/pull/85967
More information about the llvm-commits
mailing list