Skip to content

Commit 642cf19

Browse files
committed
Remove triple and datalayout
1 parent 5c20143 commit 642cf19

13 files changed

+2
-38
lines changed

llvm/test/Transforms/SampleProfile/pseudo-probe-callee-profile-mismatch.ll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
; CHECK: Profile is invalid due to CFG mismatch for Function bar
1414

1515

16-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
17-
target triple = "x86_64-unknown--"
18-
1916
define available_externally i32 @main() #0 {
2017
%1 = call i32 @bar(), !dbg !13
2118
ret i32 0

llvm/test/Transforms/SampleProfile/pseudo-probe-icp-factor.ll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/pseudo-probe-icp-factor.prof -S -sample-profile-prioritized-inline=1 2>&1 | FileCheck %s
22

3-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
4-
target triple = "x86_64-unknown--"
5-
63
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
74

85
; Function Attrs: nounwind uwtable

llvm/test/Transforms/SampleProfile/pseudo-probe-inline.ll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
; RUN: opt < %s -passes=pseudo-probe,sample-profile -annotate-sample-profile-inline-phase=true -sample-profile-file=%t2 -S -pass-remarks=sample-profile -sample-profile-prioritized-inline=0 -pass-remarks-output=%t4.opt.yaml 2>&1 | FileCheck %s
1212
; RUN: FileCheck %s -check-prefixes=YAML,YAML-ANNOTATE < %t4.opt.yaml
1313

14-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
15-
target triple = "x86_64-unknown--"
16-
1714
@factor = dso_local global i32 3, align 4
1815

1916
define dso_local i32 @foo(i32 %x) #0 !dbg !12 {

llvm/test/Transforms/SampleProfile/pseudo-probe-invoke.ll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
; REQUIRES: target={{x86_64-.*-(linux|windows).*}}
22
; RUN: opt < %s -passes=pseudo-probe -S -o - | FileCheck %s
33

4-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
5-
target triple = "x86_64-unknown--"
6-
74
$__clang_call_terminate = comdat any
85

96
@x = dso_local global i32 0, align 4, !dbg !0

llvm/test/Transforms/SampleProfile/pseudo-probe-missing-probe.ll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
; Verify the else branch is not set to a zero count
77
; CHECK-NOT: [[#PROF]] = !{!"branch_weights", i32 1698, i32 0}
88

9-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
10-
target triple = "x86_64-unknown--"
11-
129
@x = dso_local global i32 0, align 4, !dbg !0
1310

1411
; Function Attrs: nofree noinline norecurse nounwind memory(readwrite, argmem: none) uwtable

llvm/test/Transforms/SampleProfile/pseudo-probe-no-debug-info.ll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
; CHECK: call void @llvm.pseudoprobe({{.*}})
1212

1313

14-
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
15-
target triple = "x86_64-unknown--"
16-
1714
@a = common global i32 0, align 4
1815
@b = common global i32 0, align 4
1916

llvm/test/Transforms/SampleProfile/pseudo-probe-profile-mismatch.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; REQUIRES: target={{x86_64-.*-(linux|windows).*}}
1+
; REQUIRES: x86_64-linux
22
; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/pseudo-probe-profile-mismatch.prof -report-profile-staleness -persist-profile-staleness -S 2>%t -o %t.ll
33
; RUN: FileCheck %s --input-file %t
44
; RUN: FileCheck %s --input-file %t.ll -check-prefix=CHECK-MD
@@ -61,7 +61,7 @@
6161

6262

6363
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
64-
target triple = "x86_64-unknown--"
64+
target triple = "x86_64-unknown-linux-gnu"
6565

6666
@x = dso_local global i32 0, align 4, !dbg !0
6767

llvm/test/Transforms/SampleProfile/pseudo-probe-stale-profile-matching-LCS.ll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
; CHECK-MAX-CALLSITES: Skip stale profile matching for test_direct_call
3232
; CHECK-MAX-CALLSITES-NOT: Skip stale profile matching for test_indirect_call
3333

34-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
35-
target triple = "x86_64-unknown--"
36-
3734
@c = external global i32, align 4
3835

3936
; Function Attrs: nounwind uwtable

llvm/test/Transforms/SampleProfile/pseudo-probe-stale-profile-matching-lto.ll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
; CHECK: Callsite with callee:bar is matched from 15 to 9
2323

2424

25-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
26-
target triple = "x86_64-unknown--"
27-
2825
@x = internal global i32 1, align 4, !dbg !0
2926

3027
; Function Attrs: nounwind uwtable

llvm/test/Transforms/SampleProfile/pseudo-probe-stale-profile-matching.ll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@
101101
; CHECK: 1: call void @llvm.pseudoprobe(i64 -2624081020897602054, i64 1, i32 0, i64 -1), !dbg ![[#]] - weight: 0 - factor: 1.00)
102102

103103

104-
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
105-
target triple = "x86_64-unknown--"
106-
107104
@x = dso_local global i32 1, align 4, !dbg !0
108105

109106
; Function Attrs: noinline nounwind uwtable

0 commit comments

Comments
 (0)