Skip to content

[GVN/PRE] Remove triple from GVN/PRE tests #129073

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion llvm/test/Transforms/GVN/PRE/2009-06-17-InvalidPRE.ll
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
; This is invalid as it bypasses the check for %m.0.ph==null in bb4.
; ModuleID = 'mbuf.c'
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"
target triple = "i386-apple-darwin9.6"
%struct.mbuf = type { ptr, ptr, i32, ptr, i16, i16, i32 }

define void @m_adj(ptr %mp, i32 %req_len) nounwind optsize {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
; rdar://9429882

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"
target triple = "x86_64-apple-macosx10.7.0"
define i1 @rb_intern(ptr %foo) nounwind ssp {
; CHECK-LABEL: @rb_intern(

Expand Down
1 change: 0 additions & 1 deletion llvm/test/Transforms/GVN/PRE/2017-06-28-pre-load-dbgloc.ll
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
; ^

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

%struct.desc = type { ptr }
%struct.node = type { ptr, ptr }
Expand Down
1 change: 0 additions & 1 deletion llvm/test/Transforms/GVN/PRE/2017-10-16-LoadPRECrash.ll
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
; RUN: opt -S -passes=gvn -enable-load-pre < %s | FileCheck %s

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

%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 }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
; ^

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

%struct.desc = type { ptr }
%struct.node = type { ptr, ptr }
Expand Down
3 changes: 1 addition & 2 deletions llvm/test/Transforms/GVN/PRE/atomic.ll
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2
; RUN: opt -passes=gvn -S < %s | FileCheck %s
; RUN: opt -S -passes=gvn < %s | FileCheck %s

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"
target triple = "x86_64-apple-macosx10.7.0"

@x = common global i32 0, align 4
@y = common global i32 0, align 4
Expand Down
1 change: 0 additions & 1 deletion llvm/test/Transforms/GVN/PRE/load-pre-licm.ll
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -passes=gvn < %s | FileCheck %s
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"
target triple = "i386-apple-darwin11.0.0"

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

Expand Down
1 change: 0 additions & 1 deletion llvm/test/Transforms/GVN/PRE/lpre-call-wrap-2.ll
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
; outbuf[outcnt] = bi_buf;
; }
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"
target triple = "i386-apple-darwin7"
@outcnt = common global i32 0 ; <ptr> [#uses=3]

define void @bi_windup(ptr %outbuf, i8 zeroext %bi_buf) nounwind {
Expand Down
1 change: 0 additions & 1 deletion llvm/test/Transforms/GVN/PRE/lpre-call-wrap.ll
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
; void testfunction(A& iter) { A const end; while (iter != end) ++iter; }
;
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"
target triple = "i386-apple-darwin7"
%struct.A = type { i32, i32 }

define void @_Z12testfunctionR1A(ptr %iter) {
Expand Down
1 change: 0 additions & 1 deletion llvm/test/Transforms/GVN/PRE/nonintegral.ll
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
; RUN: opt -passes=gvn -S < %s | FileCheck %s

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

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

Expand Down
1 change: 0 additions & 1 deletion llvm/test/Transforms/GVN/PRE/pre-gep-load.ll
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
; RUN: opt < %s -aa-pipeline=basic-aa -passes="gvn<load-pre>" -enable-load-pre=false -S | FileCheck %s

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

define double @foo(i32 %stat, i32 %i, ptr %p) {
; CHECK-LABEL: @foo(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
; RUN: opt -S -passes=gvn -enable-load-pre < %s | FileCheck %s

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

; These tests exercise situations when instructions that were first instructions
; with implicit control flow get removed. We make sure that after that we don't
Expand Down
3 changes: 1 addition & 2 deletions llvm/test/Transforms/GVN/PRE/rle-phi-translate.ll
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
; RUN: opt < %s -passes=gvn -S | FileCheck %s
; RUN: opt < %s -S -passes=gvn | FileCheck %s

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"
target triple = "i386-apple-darwin7"

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