[compiler-rt] r277403 - improve test cases to fix bot failure
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 1 16:20:30 PDT 2016
Author: davidxl
Date: Mon Aug 1 18:20:30 2016
New Revision: 277403
URL: http://llvm.org/viewvc/llvm-project?rev=277403&view=rev
Log:
improve test cases to fix bot failure
Modified:
compiler-rt/trunk/test/profile/Inputs/comdat_rename_1.cc
compiler-rt/trunk/test/profile/Inputs/comdat_rename_2.cc
Modified: compiler-rt/trunk/test/profile/Inputs/comdat_rename_1.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/Inputs/comdat_rename_1.cc?rev=277403&r1=277402&r2=277403&view=diff
==============================================================================
--- compiler-rt/trunk/test/profile/Inputs/comdat_rename_1.cc (original)
+++ compiler-rt/trunk/test/profile/Inputs/comdat_rename_1.cc Mon Aug 1 18:20:30 2016
@@ -7,7 +7,7 @@ int FOO::callee() {
// CHECK-LABEL: define {{.*}}callee{{.*}}
// CHECK-NOT: br i1 {{.*}}
// CHECK: br {{.*}}label{{.*}}, label %[[BB1:.*]], !prof ![[PD1:[0-9]+]]
- // CHECK: ; <label>:[[BB1]]:
+ // CHECK: {{.*}}[[BB1]]:
if (b != 0)
return a / b;
if (a != 0)
@@ -21,10 +21,10 @@ int FOO::callee() {
// CHECK-LABEL: define {{.*}}caller{{.*}}
// CHECK-NOT: br i1 {{.*}}
// CHECK: br {{.*}}label{{.*}}, label %[[BB2:.*]], !prof ![[PD2:[0-9]+]]
-// CHECK: ; <label>:[[BB2]]:
+// CHECK: {{.*}}[[BB2]]:
// CHECK: br {{.*}}label{{.*}}, label %{{.*}}, !prof !{{.*}}
// CHECK: br {{.*}}label %[[BB3:.*]], label %{{.*}} !prof ![[PD3:[0-9]+]]
-// CHECK: ; <label>:[[BB3]]:
+// CHECK: {{.*}}[[BB3]]:
//
// CHECK:![[PD1]] = !{!"branch_weights", i32 0, i32 1}
// CHECK:![[PD2]] = !{!"branch_weights", i32 1, i32 0}
Modified: compiler-rt/trunk/test/profile/Inputs/comdat_rename_2.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/Inputs/comdat_rename_2.cc?rev=277403&r1=277402&r2=277403&view=diff
==============================================================================
--- compiler-rt/trunk/test/profile/Inputs/comdat_rename_2.cc (original)
+++ compiler-rt/trunk/test/profile/Inputs/comdat_rename_2.cc Mon Aug 1 18:20:30 2016
@@ -14,5 +14,5 @@ int main() {
// CHECK: {{.*}} call {{.*}}
// CHECK-NOT: br i1 {{.*}}
// CHECK: br {{.*}}label %[[BB1:.*]], label{{.*}}!prof ![[PD1:[0-9]+]]
-// CHECK: ; <label>:[[BB1]]:
+// CHECK: {{.*}}[[BB1]]:
// CHECK:![[PD1]] = !{!"branch_weights", i32 0, i32 1}
More information about the llvm-commits
mailing list