[clang] [llvm] [LLVM][SROA] Teach SROA how to "bitcast" between fixed and scalable vectors. (PR #130973)
    Craig Topper via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu May  1 10:27:52 PDT 2025
    
    
  
================
@@ -26,11 +26,15 @@ typedef vbool64_t fixed_bool64_t __attribute__((riscv_rvv_vector_bits(__riscv_v_
 //
 // CHECK-128-LABEL: @call_bool32_ff(
 // CHECK-128-NEXT:  entry:
+// CHECK-128-NEXT:    [[SAVED_VALUE:%.*]] = alloca <1 x i8>, align 1
----------------
topperc wrote:
Before #100110, I believe we would have allowed <1 x i8> with <vscale x 4 x i1> when when vscale was 2. Those are both 8 bit values, but I think getTypeSize on the scalable vector would return vscale*1 byte? Is that also broken?
https://github.com/llvm/llvm-project/pull/130973
    
    
More information about the llvm-commits
mailing list