[Mlir-commits] [mlir] [MLIR][Affine]Fixed crash with invalid cachesize (Issue #64979) (PR #114722)
Longsheng Mou
llvmlistbot at llvm.org
Mon Nov 4 05:56:53 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
+}
----------------
CoTinker wrote:
Maybe you should add a blank line at the end of file.
https://github.com/llvm/llvm-project/pull/114722
More information about the Mlir-commits
mailing list