[llvm] [Loads] Fix crash in isSafeToLoadUnconditionally with scalable accessed type (PR #82650)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 22 08:42:06 PST 2024


================
@@ -0,0 +1,22 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
+; RUN: opt < %s -passes=vector-combine -S -mtriple=riscv32 -mattr=+v | FileCheck %s -check-prefixes=CHECK,RV32
+; RUN: opt < %s -passes=vector-combine -S -mtriple=riscv64 -mattr=+v | FileCheck %s -check-prefixes=CHECK,RV64
+
+define void @fixed_load_scalable_src() {
----------------
lukel97 wrote:

`VectorCombine::widenSubvectorLoad` triggers the crash here when calling `isSafeToLoadUnconditionally`. Let me know if there's a better place to test for this!

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


More information about the llvm-commits mailing list