[llvm] [CodeGen] Move llc-start-stop.ll test to X86 (PR #190151)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 2 04:04:28 PDT 2026
https://github.com/nikic created https://github.com/llvm/llvm-project/pull/190151
The pass pipeline differs across targets, so make this test use
one specific pipeline, instead of trying to cater to cross-target
differences. Those differences are not relevant to the intent of
the test.
>From b24194b771069fb5956ca310ca00c87ab8509b6e Mon Sep 17 00:00:00 2001
From: Nikita Popov <npopov at redhat.com>
Date: Thu, 2 Apr 2026 13:03:00 +0200
Subject: [PATCH] [CodeGen] Move llc-start-stop.ll test to X86
The pass pipeline differs across targets, so make this test use
one specific pipeline, instead of trying to cater to cross-target
differences. Those differences are not relevant to the intent of
the test.
---
llvm/test/CodeGen/{Generic => X86}/llc-start-stop.ll | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
rename llvm/test/CodeGen/{Generic => X86}/llc-start-stop.ll (92%)
diff --git a/llvm/test/CodeGen/Generic/llc-start-stop.ll b/llvm/test/CodeGen/X86/llc-start-stop.ll
similarity index 92%
rename from llvm/test/CodeGen/Generic/llc-start-stop.ll
rename to llvm/test/CodeGen/X86/llc-start-stop.ll
index bca7b410de06b..b9e5de51e5169 100644
--- a/llvm/test/CodeGen/Generic/llc-start-stop.ll
+++ b/llvm/test/CodeGen/X86/llc-start-stop.ll
@@ -1,6 +1,3 @@
-; NVPTX customizes the list of passes so the test cannot find what it expects
-; XFAIL: target=nvptx{{.*}}
-
; Note: -verify-machineinstrs is used in order to make this test compatible with EXPENSIVE_CHECKS.
; RUN: llc < %s -debug-pass=Structure -stop-after=loop-reduce -verify-machineinstrs -o /dev/null 2>&1 \
; RUN: | FileCheck %s -check-prefix=STOP-AFTER
@@ -27,7 +24,7 @@
; START-BEFORE: -machine-branch-prob -regalloc-evict -regalloc-priority -domtree
; START-BEFORE: FunctionPass Manager
; START-BEFORE: Loop Strength Reduction
-; START-BEFORE-NEXT: {{Loop Terminator Folding|Lower Garbage Collection Instructions}}
+; START-BEFORE-NEXT: Lower Garbage Collection Instructions
; RUN: not llc < %s -start-before=nonexistent -o /dev/null 2>&1 | FileCheck %s -check-prefix=NONEXISTENT-START-BEFORE
; RUN: not llc < %s -stop-before=nonexistent -o /dev/null 2>&1 | FileCheck %s -check-prefix=NONEXISTENT-STOP-BEFORE
@@ -42,3 +39,5 @@
; RUN: not llc < %s -stop-before=loop-reduce -stop-after=loop-reduce -o /dev/null 2>&1 | FileCheck %s -check-prefix=DOUBLE-STOP
; DOUBLE-START: start-before and start-after specified!
; DOUBLE-STOP: stop-before and stop-after specified!
+
+target triple = "x86_64-unknown-linux-gnu"
More information about the llvm-commits
mailing list