[llvm] a6adb63 - [GVN][NFC] Remove triple from some tests (#129724)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 4 19:42:32 PST 2025
Author: Madhur Amilkanthwar
Date: 2025-03-05T09:12:29+05:30
New Revision: a6adb63d35308e07e131fee9b1b3aadfca9f507f
URL: https://github.com/llvm/llvm-project/commit/a6adb63d35308e07e131fee9b1b3aadfca9f507f
DIFF: https://github.com/llvm/llvm-project/commit/a6adb63d35308e07e131fee9b1b3aadfca9f507f.diff
LOG: [GVN][NFC] Remove triple from some tests (#129724)
These tests should not require triple.
Added:
Modified:
llvm/test/Transforms/GVN/malloc-load-removal.ll
llvm/test/Transforms/GVN/non-integral-pointers.ll
llvm/test/Transforms/GVN/nonescaping.ll
llvm/test/Transforms/GVN/pr14166.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/GVN/malloc-load-removal.ll b/llvm/test/Transforms/GVN/malloc-load-removal.ll
index 96b5bef5031e7..0aa4beb6380a3 100644
--- a/llvm/test/Transforms/GVN/malloc-load-removal.ll
+++ b/llvm/test/Transforms/GVN/malloc-load-removal.ll
@@ -2,7 +2,6 @@
; PR13694
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-S128"
-target triple = "x86_64-apple-macosx10.8.0"
declare noalias ptr @malloc(i64) nounwind allockind("alloc,uninitialized") allocsize(0)
diff --git a/llvm/test/Transforms/GVN/non-integral-pointers.ll b/llvm/test/Transforms/GVN/non-integral-pointers.ll
index 559d63651eb32..18a015fb80dad 100644
--- a/llvm/test/Transforms/GVN/non-integral-pointers.ll
+++ b/llvm/test/Transforms/GVN/non-integral-pointers.ll
@@ -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:5"
-target triple = "x86_64-unknown-linux-gnu"
define void @f0(i1 %alwaysFalse, i64 %val, ptr %loc) {
; CHECK-LABEL: @f0(
diff --git a/llvm/test/Transforms/GVN/nonescaping.ll b/llvm/test/Transforms/GVN/nonescaping.ll
index 0edcb663224b7..ad6fa1db0f93e 100644
--- a/llvm/test/Transforms/GVN/nonescaping.ll
+++ b/llvm/test/Transforms/GVN/nonescaping.ll
@@ -2,7 +2,6 @@
; RUN: opt < %s -S -passes=gvn 2>&1 | 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"
-target triple = "x86_64-apple-darwin10.0"
declare noalias ptr @malloc(i64) nounwind allockind("alloc,uninitialized") allocsize(0) inaccessiblememonly
declare noalias ptr @calloc(i64, i64) allockind("alloc,zeroed") allocsize(0,1) inaccessiblememonly
diff --git a/llvm/test/Transforms/GVN/pr14166.ll b/llvm/test/Transforms/GVN/pr14166.ll
index 6dc831a6e8c35..3379a5f604b0b 100644
--- a/llvm/test/Transforms/GVN/pr14166.ll
+++ b/llvm/test/Transforms/GVN/pr14166.ll
@@ -1,6 +1,5 @@
; RUN: opt -disable-basic-aa -passes=gvn -S < %s | FileCheck %s
target datalayout = "e-p:32:32:32"
-target triple = "i386-pc-linux-gnu"
define <2 x i32> @test1() {
%v1 = alloca <2 x i32>
call void @anything(ptr %v1)
More information about the llvm-commits
mailing list