[llvm] [LV] Fix missing entry in willGenerateVectors (PR #136712)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 22 11:55:02 PDT 2025


================
@@ -753,6 +753,29 @@ for.exit:
   ret void
 }
 
+; The histogram operation generates vectors. This example used to crash
+; due to a missing entry in a switch statement.
+define void @histogram_generates_vectors_crash(ptr %data_array) {
+entry:
+  br label %for.body
+
+for.body:
+  %iv = phi i64 [ 0, %entry ], [ %iv.next, %for.body ]
+  %gep.indices = getelementptr [1048576 x i32], ptr null, i64 %iv
----------------
artagnon wrote:

Thanks!

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


More information about the llvm-commits mailing list