[llvm] [GlobalOpt] Use `target triple` to fix Buildbot failures, NFCI (PR #169260)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 23 17:18:04 PST 2025
https://github.com/phoebewang created https://github.com/llvm/llvm-project/pull/169260
This supposes to fix LLVM Buildbot failures after #164768. I don't have the environment to verify though.
>From edadf48044231badfa6a30b134f407bc8eef231b Mon Sep 17 00:00:00 2001
From: Phoebe Wang <phoebe.wang at intel.com>
Date: Mon, 24 Nov 2025 09:14:04 +0800
Subject: [PATCH] [GlobalOpt] Use `target triple` to fix Buildbot failures,
NFCI
This supposes to fix LLVM Buildbot failures after #164768. I don't have
the environment to verify though.
---
llvm/test/Transforms/GlobalOpt/X86/apx.ll | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/llvm/test/Transforms/GlobalOpt/X86/apx.ll b/llvm/test/Transforms/GlobalOpt/X86/apx.ll
index aaf6abac966e8..2167b18738104 100644
--- a/llvm/test/Transforms/GlobalOpt/X86/apx.ll
+++ b/llvm/test/Transforms/GlobalOpt/X86/apx.ll
@@ -1,5 +1,8 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6
-; RUN: opt -mtriple=x86_64 -S -passes=globalopt -o - < %s | FileCheck %s
+; RUN: opt -S -passes=globalopt -o - < %s | FileCheck %s
+
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
define void @caller1() {
; CHECK-LABEL: define void @caller1() local_unnamed_addr {
More information about the llvm-commits
mailing list