[llvm] 1fe4f2d - [Inliner][test] Fix incorrect REQUIRE line in `inline-switch-default.ll` (NFC) (#95009)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 10 15:32:39 PDT 2024
Author: Min-Yih Hsu
Date: 2024-06-10T15:32:35-07:00
New Revision: 1fe4f2d1a4b9d16ae41076608783df4427a4d985
URL: https://github.com/llvm/llvm-project/commit/1fe4f2d1a4b9d16ae41076608783df4427a4d985
DIFF: https://github.com/llvm/llvm-project/commit/1fe4f2d1a4b9d16ae41076608783df4427a4d985.diff
LOG: [Inliner][test] Fix incorrect REQUIRE line in `inline-switch-default.ll` (NFC) (#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.
Added:
Modified:
llvm/test/Transforms/Inline/inline-switch-default.ll
Removed:
################################################################################
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