Skip to content

Commit 0a54887

Browse files
committed
Fix MLIR test case failure caused by 89e0662
Fix MLIR test case failure introduced by 89e0662. LLVM's IR builder now automatically sets the alignment on alloca.
1 parent ac047d9 commit 0a54887

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mlir/test/Target/llvmir.mlir

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,8 +1023,9 @@ llvm.func @vect_i64idx(%arg0: !llvm<"<4 x float>">, %arg1: !llvm.i64, %arg2: !ll
10231023

10241024
// CHECK-LABEL: @alloca
10251025
llvm.func @alloca(%size : !llvm.i64) {
1026-
// CHECK: alloca
1027-
// CHECK-NOT: align
1026+
// Alignment automatically set by the LLVM IR builder when alignment attribute
1027+
// is 0.
1028+
// CHECK: alloca {{.*}} align 4
10281029
llvm.alloca %size x !llvm.i32 {alignment = 0} : (!llvm.i64) -> (!llvm<"i32*">)
10291030
// CHECK-NEXT: alloca {{.*}} align 8
10301031
llvm.alloca %size x !llvm.i32 {alignment = 8} : (!llvm.i64) -> (!llvm<"i32*">)

0 commit comments

Comments
 (0)