[compiler-rt] r277387 - Make test more robust with better matching

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 1 14:06:54 PDT 2016


Author: davidxl
Date: Mon Aug  1 16:06:54 2016
New Revision: 277387

URL: http://llvm.org/viewvc/llvm-project?rev=277387&view=rev
Log:
Make test more robust with better matching

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=277387&r1=277386&r2=277387&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 16:06:54 2016
@@ -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;
@@ -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}

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=277387&r1=277386&r2=277387&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 16:06:54 2016
@@ -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}




More information about the llvm-commits mailing list