[llvm] [RISCV][GISEL] Legalize G_EXTRACT_SUBVECTOR (PR #109426)

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 30 12:29:48 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())
----------------
michaelmaitland wrote:

it is checked above

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


More information about the llvm-commits mailing list