[Mlir-commits] [mlir] [MLIR][Affine]Fixed crash with invalid cachesize (Issue #64979) (PR #114722)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Nov 4 06:07:48 PST 2024
================
@@ -0,0 +1,14 @@
+// RUN: mlir-opt -affine-loop-tile="cache-size=0" %s -split-input-file -verify-diagnostics
+// XFAIL: *
+// This is @legal_loop() test case. The expected error is "illegal argument: 'cache-size' cannot be zero"
+// at unknown location because of invalid command line argument.
+
+func.func @test_cache_size_zero() {
+ %0 = memref.alloc() : memref<64xf32>
+ affine.for %i = 0 to 64 {
+ %1 = affine.load %0[%i] : memref<64xf32>
+ %2 = arith.addf %1, %1 : f32
+ affine.store %2, %0[%i] : memref<64xf32>
+ }
+ return
+}
----------------
SwapnilGhanshyala wrote:
Sure, addressed in the latest commit!
https://github.com/llvm/llvm-project/pull/114722
More information about the Mlir-commits
mailing list