[llvm] [Inliner][test] Fix incorrect REQUIRE line in `inline-switch-default.ll` (PR #95009)
Min-Yih Hsu via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 10 10:00:08 PDT 2024
https://github.com/mshockwave created https://github.com/llvm/llvm-project/pull/95009
It should be `x86-registered-target` because we only need the X86 target in this case. `x86_64-linux` will be too strict here as it puts a prerequisite on the default target triple.
>From 0286fecbe5020c1fbb537d0af6fa794de9754163 Mon Sep 17 00:00:00 2001
From: Min Hsu <min.hsu at sifive.com>
Date: Mon, 10 Jun 2024 09:55:27 -0700
Subject: [PATCH] [Inliner][test] Fix incorrect REQUIRE line in
`inline-switch-default.ll`
It should be `x86-registered-target` rather than `x86_64-linux`, which
puts a overly-strict prerequisite on the default target triple.
---
llvm/test/Transforms/Inline/inline-switch-default.ll | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/test/Transforms/Inline/inline-switch-default.ll b/llvm/test/Transforms/Inline/inline-switch-default.ll
index 288d414fe0e0e..1cc2f2ef10f56 100644
--- a/llvm/test/Transforms/Inline/inline-switch-default.ll
+++ b/llvm/test/Transforms/Inline/inline-switch-default.ll
@@ -1,7 +1,7 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
; RUN: opt %s -S -passes=inline -inline-threshold=16 -min-jump-table-entries=4 | FileCheck %s -check-prefix=LOOKUPTABLE
; RUN: opt %s -S -passes=inline -inline-threshold=11 -min-jump-table-entries=5 | FileCheck %s -check-prefix=SWITCH
-; REQUIRES: x86_64-linux
+; REQUIRES: x86-registered-target
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"
target triple = "x86_64-unknown-linux-gnu"
More information about the llvm-commits
mailing list