[Mlir-commits] [mlir] [mlir][memref] Avoid overflow in mem2reg alloca checks (PR #205245)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Aug 21 00:08:22 PDT 2026
================
@@ -343,3 +343,17 @@ func.func @scalable_zero_extent_alloca() {
%alloca = memref.alloca(%size) : memref<?xf32>
return
}
+
+// -----
+
+// Make sure mem2reg does not crash on an alloca whose element count overflows
+// int64. https://github.com/llvm/llvm-project/issues/204297
+
+// CHECK-LABEL: func.func @alloca_element_count_overflow
+func.func @alloca_element_count_overflow() {
+ return
+^bb1(%0: index):
----------------
LouisLu060211 wrote:
Fix
https://github.com/llvm/llvm-project/pull/205245
More information about the Mlir-commits
mailing list