Skip to content

Commit 932866b

Browse files
committedApr 20, 2016
[test/PGOProfile] Make tests independent of the raw profile version (NFC)
Differential Revision: http://reviews.llvm.org/D19290 llvm-svn: 266928
1 parent 0195c5e commit 932866b

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed
 

‎llvm/test/Transforms/PGOProfile/branch1.ll

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ target triple = "x86_64-unknown-linux-gnu"
77
; GEN-DARWIN-LINKONCE: target triple = "x86_64-apple-darwin"
88

99
; GEN-COMDAT: $__llvm_profile_raw_version = comdat any
10-
; GEN-COMDAT: @__llvm_profile_raw_version = constant i64 72057594037927939, comdat
11-
; GEN-LINKONCE: @__llvm_profile_raw_version = linkonce constant i64 72057594037927939
10+
; GEN-COMDAT: @__llvm_profile_raw_version = constant i64 {{[0-9]+}}, comdat
11+
; GEN-LINKONCE: @__llvm_profile_raw_version = linkonce constant i64 {{[0-9]+}}
1212
; GEN: @__profn_test_br_1 = private constant [9 x i8] c"test_br_1"
1313

1414
define i32 @test_br_1(i32 %i) {

‎llvm/test/Transforms/PGOProfile/branch2.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
55
target triple = "x86_64-unknown-linux-gnu"
66

77
; GEN: $__llvm_profile_raw_version = comdat any
8-
; GEN: @__llvm_profile_raw_version = constant i64 72057594037927939, comdat
8+
; GEN: @__llvm_profile_raw_version = constant i64 {{[0-9]+}}, comdat
99
; GEN: @__profn_test_br_2 = private constant [9 x i8] c"test_br_2"
1010

1111
define i32 @test_br_2(i32 %i) {

‎llvm/test/Transforms/PGOProfile/criticaledge.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
55
target triple = "x86_64-unknown-linux-gnu"
66

77
; GEN: $__llvm_profile_raw_version = comdat any
8-
; GEN: @__llvm_profile_raw_version = constant i64 72057594037927939, comdat
8+
; GEN: @__llvm_profile_raw_version = constant i64 {{[0-9]+}}, comdat
99
; GEN: @__profn_test_criticalEdge = private constant [17 x i8] c"test_criticalEdge"
1010
; GEN: @__profn__stdin__bar = private constant [11 x i8] c"<stdin>:bar"
1111

‎llvm/test/Transforms/PGOProfile/landingpad.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ target triple = "x86_64-unknown-linux-gnu"
77
@val = global i32 0, align 4
88
@_ZTIi = external constant i8*
99
; GEN: $__llvm_profile_raw_version = comdat any
10-
; GEN: @__llvm_profile_raw_version = constant i64 72057594037927939, comdat
10+
; GEN: @__llvm_profile_raw_version = constant i64 {{[0-9]+}}, comdat
1111
; GEN: @__profn_bar = private constant [3 x i8] c"bar"
1212
; GEN: @__profn_foo = private constant [3 x i8] c"foo"
1313

‎llvm/test/Transforms/PGOProfile/loop1.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
55
target triple = "x86_64-unknown-linux-gnu"
66

77
; GEN: $__llvm_profile_raw_version = comdat any
8-
; GEN: @__llvm_profile_raw_version = constant i64 72057594037927939, comdat
8+
; GEN: @__llvm_profile_raw_version = constant i64 {{[0-9]+}}, comdat
99
; GEN: @__profn_test_simple_for = private constant [15 x i8] c"test_simple_for"
1010

1111
define i32 @test_simple_for(i32 %n) {

‎llvm/test/Transforms/PGOProfile/loop2.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
55
target triple = "x86_64-unknown-linux-gnu"
66

77
; GEN: $__llvm_profile_raw_version = comdat any
8-
; GEN: @__llvm_profile_raw_version = constant i64 72057594037927939, comdat
8+
; GEN: @__llvm_profile_raw_version = constant i64 {{[0-9]+}}, comdat
99
; GEN: @__profn_test_nested_for = private constant [15 x i8] c"test_nested_for"
1010

1111
define i32 @test_nested_for(i32 %r, i32 %s) {

‎llvm/test/Transforms/PGOProfile/single_bb.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
33
target triple = "x86_64-unknown-linux-gnu"
44

55
; GEN: $__llvm_profile_raw_version = comdat any
6-
; GEN: @__llvm_profile_raw_version = constant i64 72057594037927939, comdat
6+
; GEN: @__llvm_profile_raw_version = constant i64 {{[0-9]+}}, comdat
77
; GEN: @__profn_single_bb = private constant [9 x i8] c"single_bb"
88

99
define i32 @single_bb() {

‎llvm/test/Transforms/PGOProfile/switch.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
55
target triple = "x86_64-unknown-linux-gnu"
66

77
; GEN: $__llvm_profile_raw_version = comdat any
8-
; GEN: @__llvm_profile_raw_version = constant i64 72057594037927939, comdat
8+
; GEN: @__llvm_profile_raw_version = constant i64 {{[0-9]+}}, comdat
99
; GEN: @__profn_test_switch = private constant [11 x i8] c"test_switch"
1010

1111
define void @test_switch(i32 %i) {

0 commit comments

Comments
 (0)
Please sign in to comment.