[Mlir-commits] [flang] [mlir] [LLVM-Flang][OpenMP] Fix to resolve the crash with SIMD aligned clause. (PR #150612)

Kaviya Rajendiran llvmlistbot at llvm.org
Mon Jul 28 06:31:16 PDT 2025


================
@@ -58,3 +58,21 @@ llvm.func @_QPsimd_aligned_allocatable() {
   }
   llvm.return
 }
+
+//CHECK-LABEL: define void @_QPsimd_aligned_non_power_of_two() {
+//CHECK:   %[[A_ADDR:.*]] = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, i64 1, align 8
+//CHECK-NOT:   call void @llvm.assume(i1 true) [ "align"(ptr %{{.*}}, i64 256) ]
----------------
kaviya2510 wrote:

Apologies, I made a mistake here. 
yes, It should be` i64 257`. I supposed to add a check to verify that it is not emitting the call to `llvm.assume(i1 true) [ "align"(ptr %{{.*}}, i64 257) ]` but mistakenly written it as `i64 256`

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


More information about the Mlir-commits mailing list