Skip to content

Commit 9fefc01

Browse files
authored
[GVN/PRE] Remove triple from GVN/PRE tests (#129073)
The tests in GVN/PRE need not to depend on target triple. Removing the triple dependence from all the tests in this directory.
1 parent b215282 commit 9fefc01

13 files changed

+2
-15
lines changed

llvm/test/Transforms/GVN/PRE/2009-06-17-InvalidPRE.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
; This is invalid as it bypasses the check for %m.0.ph==null in bb4.
55
; ModuleID = 'mbuf.c'
66
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
7-
target triple = "i386-apple-darwin9.6"
87
%struct.mbuf = type { ptr, ptr, i32, ptr, i16, i16, i32 }
98

109
define void @m_adj(ptr %mp, i32 %req_len) nounwind optsize {

llvm/test/Transforms/GVN/PRE/2011-06-01-NonLocalMemdepMiscompile.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
; rdar://9429882
55

66
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
7-
target triple = "x86_64-apple-macosx10.7.0"
87
define i1 @rb_intern(ptr %foo) nounwind ssp {
98
; CHECK-LABEL: @rb_intern(
109

llvm/test/Transforms/GVN/PRE/2017-06-28-pre-load-dbgloc.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
; ^
2727

2828
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
29-
target triple = "aarch64--linux-gnu"
3029

3130
%struct.desc = type { ptr }
3231
%struct.node = type { ptr, ptr }

llvm/test/Transforms/GVN/PRE/2017-10-16-LoadPRECrash.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
; RUN: opt -S -passes=gvn -enable-load-pre < %s | FileCheck %s
22

33
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
4-
target triple = "x86_64-unknown-linux-gnu"
54

65
%ArrayImpl = type { i64, ptr addrspace(100), [1 x i64], [1 x i64], [1 x i64], i64, i64, ptr addrspace(100), ptr addrspace(100), i8, i64 }
76

llvm/test/Transforms/GVN/PRE/2018-06-08-pre-load-dbgloc-no-null-opt.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
; ^
2727

2828
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
29-
target triple = "aarch64--linux-gnu"
3029

3130
%struct.desc = type { ptr }
3231
%struct.node = type { ptr, ptr }

llvm/test/Transforms/GVN/PRE/atomic.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2
2-
; RUN: opt -passes=gvn -S < %s | FileCheck %s
2+
; RUN: opt -S -passes=gvn < %s | FileCheck %s
33

44
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
5-
target triple = "x86_64-apple-macosx10.7.0"
65

76
@x = common global i32 0, align 4
87
@y = common global i32 0, align 4

llvm/test/Transforms/GVN/PRE/load-pre-licm.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
22
; RUN: opt -S -passes=gvn < %s | FileCheck %s
33
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32"
4-
target triple = "i386-apple-darwin11.0.0"
54

65
@sortlist = external global [5001 x i32], align 4
76

llvm/test/Transforms/GVN/PRE/lpre-call-wrap-2.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
; outbuf[outcnt] = bi_buf;
1111
; }
1212
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
13-
target triple = "i386-apple-darwin7"
1413
@outcnt = common global i32 0 ; <ptr> [#uses=3]
1514

1615
define void @bi_windup(ptr %outbuf, i8 zeroext %bi_buf) nounwind {

llvm/test/Transforms/GVN/PRE/lpre-call-wrap.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
; void testfunction(A& iter) { A const end; while (iter != end) ++iter; }
1616
;
1717
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
18-
target triple = "i386-apple-darwin7"
1918
%struct.A = type { i32, i32 }
2019

2120
define void @_Z12testfunctionR1A(ptr %iter) {

llvm/test/Transforms/GVN/PRE/nonintegral.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
; RUN: opt -passes=gvn -S < %s | FileCheck %s
33

44
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128-ni:4"
5-
target triple = "x86_64-unknown-linux-gnu"
65

76
define void @nipre(ptr noalias %p, ptr noalias %p2, i8 %jmp) {
87

llvm/test/Transforms/GVN/PRE/pre-gep-load.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
; RUN: opt < %s -aa-pipeline=basic-aa -passes="gvn<load-pre>" -enable-load-pre=false -S | FileCheck %s
55

66
target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
7-
target triple = "aarch64--linux-gnu"
87

98
define double @foo(i32 %stat, i32 %i, ptr %p) {
109
; CHECK-LABEL: @foo(

llvm/test/Transforms/GVN/PRE/pre-load-implicit-cf-updates.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
; RUN: opt -S -passes=gvn -enable-load-pre < %s | FileCheck %s
22

33
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
4-
target triple = "x86_64-unknown-linux-gnu"
54

65
; These tests exercise situations when instructions that were first instructions
76
; with implicit control flow get removed. We make sure that after that we don't

llvm/test/Transforms/GVN/PRE/rle-phi-translate.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
; RUN: opt < %s -passes=gvn -S | FileCheck %s
1+
; RUN: opt < %s -S -passes=gvn | FileCheck %s
22

33
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
4-
target triple = "i386-apple-darwin7"
54

65
define i32 @test1(ptr %b, ptr %c) nounwind {
76
; CHECK-LABEL: @test1(

0 commit comments

Comments
 (0)