Skip to content

Commit 4325873

Browse files
committed
Fix MLIR test
I made a mistake when rewriting the privatizer, which led to the test reading incorrectly.
1 parent 7cb83e3 commit 4325873

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/test/Target/LLVMIR/openmp-private.mlir

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,15 @@ llvm.func @parallel_op_private_multi_block(%arg0: !llvm.ptr) {
123123
// Check that the privatizer's continuation block yileds the private clone's
124124
// address.
125125
// CHECK: [[PRIV_CONT]]:
126-
// CHECK-NEXT: %[[ORIG_PTR3:.*]] = phi ptr [ %[[ORIG_PTR2]], %[[PRIV_BB2]] ]
126+
// CHECK-NEXT: %[[PRIV_ALLOC3:.*]] = phi ptr [ %[[PRIV_ALLOC2]], %[[PRIV_BB2]] ]
127127
// CHECK-NEXT: br label %[[PAR_REG:.*]]
128128

129129
// CHECK: [[PAR_REG]]:
130130
// CHECK-NEXT: br label %[[PAR_REG2:.*]]
131131

132132
// Check that the body of the parallel region loads from the private clone.
133133
// CHECK: [[PAR_REG2]]:
134-
// CHECK: %{{.*}} = load float, ptr %[[ORIG_PTR3]], align 4
134+
// CHECK: %{{.*}} = load float, ptr %[[PRIV_ALLOC3]], align 4
135135

136136
omp.private {type = private} @multi_block.privatizer : f32 init {
137137
^bb0(%arg0: !llvm.ptr, %arg1: !llvm.ptr):
@@ -140,7 +140,7 @@ omp.private {type = private} @multi_block.privatizer : f32 init {
140140
^bb1(%arg2: !llvm.ptr, %arg3: !llvm.ptr):
141141
%1 = llvm.load %arg2 : !llvm.ptr -> f32
142142
llvm.store %1, %arg3 : f32, !llvm.ptr
143-
omp.yield(%arg2 : !llvm.ptr)
143+
omp.yield(%arg3 : !llvm.ptr)
144144
}
145145

146146
// Tests fix for Fujitsu test suite test: 0007_0019.f90: the

0 commit comments

Comments
 (0)