[llvm] [RISCV][GISEL] Legalize G_EXTRACT_SUBVECTOR (PR #109426)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 30 12:00:19 PDT 2024
================
@@ -3702,8 +3702,15 @@ LegalizerHelper::bitcastExtractSubvector(MachineInstr &MI, unsigned TypeIdx,
if (DstTy == CastTy)
return Legalized;
- auto AdjustAmt = CastTy.getScalarType().getSizeInBits() /
- DstTy.getScalarType().getSizeInBits();
+ if (DstTy.getSizeInBits() != CastTy.getSizeInBits())
----------------
tschuett wrote:
Could they be scalable vectors?
https://github.com/llvm/llvm-project/pull/109426
More information about the llvm-commits
mailing list