projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac047d9
)
Fix MLIR test case failure caused by 89e0662dee5fa541f284e6be0af9e36e7f39f947
author
Uday Bondhugula
<uday@polymagelabs.com>
Tue, 14 Apr 2020 04:24:19 +0000
(09:54 +0530)
committer
Uday Bondhugula
<uday@polymagelabs.com>
Tue, 14 Apr 2020 04:24:22 +0000
(09:54 +0530)
Fix MLIR test case failure introduced by
89e0662dee5fa541f284e6be0af9e36e7f39f947
. LLVM's IR builder
now automatically sets the alignment on alloca.
mlir/test/Target/llvmir.mlir
patch
|
blob
|
history
diff --git
a/mlir/test/Target/llvmir.mlir
b/mlir/test/Target/llvmir.mlir
index
e3a9185
..
2dcbc2f
100644
(file)
--- a/
mlir/test/Target/llvmir.mlir
+++ b/
mlir/test/Target/llvmir.mlir
@@
-1023,8
+1023,9
@@
llvm.func @vect_i64idx(%arg0: !llvm<"<4 x float>">, %arg1: !llvm.i64, %arg2: !ll
// CHECK-LABEL: @alloca
llvm.func @alloca(%size : !llvm.i64) {
- // CHECK: alloca
- // CHECK-NOT: align
+ // Alignment automatically set by the LLVM IR builder when alignment attribute
+ // is 0.
+ // CHECK: alloca {{.*}} align 4
llvm.alloca %size x !llvm.i32 {alignment = 0} : (!llvm.i64) -> (!llvm<"i32*">)
// CHECK-NEXT: alloca {{.*}} align 8
llvm.alloca %size x !llvm.i32 {alignment = 8} : (!llvm.i64) -> (!llvm<"i32*">)