[PATCH] D85725: [Transforms][SROA] Skip uses of allocas where the type is scalable

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 09:00:03 PDT 2020


david-arm added inline comments.


================
Comment at: llvm/test/Transforms/SROA/scalable-vectors.ll:54
+  %type.addr = alloca <16 x i32>
+  %1 = bitcast <16 x i32>* %type to <vscale x 4 x i32>*
+  store <vscale x 4 x i32> %type.coerce, <vscale x 4 x i32>* %1
----------------
I think this is undefined behaviour for anything other than 512 fixed length vectors. Is it possible to amend the opt line to specify the fixed length vector size?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85725/new/

https://reviews.llvm.org/D85725



More information about the llvm-commits mailing list