Skip to content

Commit

Permalink
Make test more robust with better matching
Browse files Browse the repository at this point in the history
llvm-svn: 277387
  • Loading branch information
david-xl committed Aug 1, 2016
1 parent ad4a911 commit e594277
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions compiler-rt/test/profile/Inputs/comdat_rename_1.cc
Expand Up @@ -6,7 +6,7 @@
int FOO::callee() {
// CHECK-LABEL: define {{.*}}callee{{.*}}
// CHECK-NOT: br i1 {{.*}}
// CHECK: br {{.*}}label{{.*}}, label %[[BB1:[0-9]+]], !prof ![[PD1:[0-9]+]]
// CHECK: br {{.*}}label{{.*}}, label %[[BB1:.*]], !prof ![[PD1:[0-9]+]]
// CHECK: ; <label>:[[BB1]]:
if (b != 0)
return a / b;
Expand All @@ -20,10 +20,10 @@ int FOO::callee() {
//
// CHECK-LABEL: define {{.*}}caller{{.*}}
// CHECK-NOT: br i1 {{.*}}
// CHECK: br {{.*}}label{{.*}}, label %[[BB2:[0-9]+]], !prof ![[PD2:[0-9]+]]
// CHECK: br {{.*}}label{{.*}}, label %[[BB2:.*]], !prof ![[PD2:[0-9]+]]
// CHECK: ; <label>:[[BB2]]:
// CHECK: br {{.*}}label{{.*}}, label %{{.*}}, !prof !{{.*}}
// CHECK: br {{.*}}label %[[BB3:[0-9]+]], label %{{.*}} !prof ![[PD3:[0-9]+]]
// CHECK: br {{.*}}label %[[BB3:.*]], label %{{.*}} !prof ![[PD3:[0-9]+]]
// CHECK: ; <label>:[[BB3]]:
//
// CHECK:![[PD1]] = !{!"branch_weights", i32 0, i32 1}
Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/test/profile/Inputs/comdat_rename_2.cc
Expand Up @@ -13,6 +13,6 @@ int main() {
// CHECK-LABEL: define {{.*}}caller{{.*}}
// CHECK: {{.*}} call {{.*}}
// CHECK-NOT: br i1 {{.*}}
// CHECK: br {{.*}}label %[[BB1:[0-9]+]], label{{.*}}!prof ![[PD1:[0-9]+]]
// CHECK: br {{.*}}label %[[BB1:.*]], label{{.*}}!prof ![[PD1:[0-9]+]]
// CHECK: ; <label>:[[BB1]]:
// CHECK:![[PD1]] = !{!"branch_weights", i32 0, i32 1}

0 comments on commit e594277

Please sign in to comment.