[llvm] [RISCV][GISEL] Legalize G_EXTRACT_SUBVECTOR (PR #109426)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 30 06:22:55 PDT 2024
================
@@ -597,6 +597,10 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST)
SplatActions.clampScalar(1, sXLen, sXLen);
+ getActionDefinitionsBuilder(G_EXTRACT_SUBVECTOR)
+ .customIf(typeIsLegalBoolVec(0, BoolVecTys, ST))
+ .customIf(typeIsLegalIntOrFPVec(0, IntOrFPVecTys, ST));
----------------
arsenm wrote:
Would be nicer if these were fused into one customIf condition
https://github.com/llvm/llvm-project/pull/109426
More information about the llvm-commits
mailing list