Skip to content

Commit c1e3d38

Browse files
committed
[CodeGenOpenCL] Fix check prefix typo on convergent.cl test
Noticed while fixing unused prefix warnings - there isn't actually any diff in the loop unrolled ir between old/new pass managers any more, so the broken checks were superfluous
1 parent 10fc39b commit c1e3d38

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

clang/test/CodeGenOpenCL/convergent.cl

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clang_cc1 -triple spir-unknown-unknown -emit-llvm %s -o - -fno-experimental-new-pass-manager | opt -instnamer -S | FileCheck -enable-var-scope %s --check-prefixes=CHECK,CHECK-LEGACY
2-
// RUN: %clang_cc1 -triple spir-unknown-unknown -emit-llvm %s -o - -fexperimental-new-pass-manager | opt -instnamer -S | FileCheck -enable-var-scope %s --check-prefixes=CHECK,CHECK-NEWPM
1+
// RUN: %clang_cc1 -triple spir-unknown-unknown -emit-llvm %s -o - -fno-experimental-new-pass-manager | opt -instnamer -S | FileCheck -enable-var-scope %s
2+
// RUN: %clang_cc1 -triple spir-unknown-unknown -emit-llvm %s -o - -fexperimental-new-pass-manager | opt -instnamer -S | FileCheck -enable-var-scope %s
33

44
// This is initially assumed convergent, but can be deduced to not require it.
55

@@ -118,12 +118,7 @@ void test_unroll() {
118118
// CHECK: [[for_body]]:
119119
// CHECK: tail call spir_func void @nodupfun() #[[attr5:[0-9]+]]
120120
// CHECK-NOT: call spir_func void @nodupfun()
121-
122-
// The new PM produces a slightly different IR for the loop from the legacy PM,
123-
// but the test still checks that the loop is not unrolled.
124-
// CHECK-LEGACY: br i1 %{{.+}}, label %[[for_body]], label %[[for_cond_cleanup]]
125-
// CHECK-NEW: br i1 %{{.+}}, label %[[for_body_crit_edge:.+]], label %[[for_cond_cleanup]]
126-
// CHECK-NEW: [[for_body_crit_edge]]:
121+
// CHECK: br i1 %{{.+}}, label %[[for_body]], label %[[for_cond_cleanup]]
127122

128123
void test_not_unroll() {
129124
for (int i = 0; i < 10; i++)

0 commit comments

Comments
 (0)