[llvm] [Codegen] Relax start stop test so riscv passes (PR #190171)

Gabriel Baraldi via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 2 06:18:03 PDT 2026


https://github.com/gbaraldi created https://github.com/llvm/llvm-project/pull/190171

Since https://github.com/llvm/llvm-project/pull/77370 this test fails in riscv. That's because it runs Loop Terminator Folding and the next check is then wrong



>From 44a6a12e97961676dd66c271dd8c5fdddae8fd46 Mon Sep 17 00:00:00 2001
From: Gabriel Baraldi <baraldigabriel at gmail.com>
Date: Thu, 2 Apr 2026 13:15:05 +0000
Subject: [PATCH] Relax check on llc-start-stop.ll so it passes on both riscv
 and others. Riscv runs Loop Terminator Folding so it's slightly different

---
 llvm/test/CodeGen/X86/llc-start-stop.ll | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/test/CodeGen/X86/llc-start-stop.ll b/llvm/test/CodeGen/X86/llc-start-stop.ll
index b9e5de51e5169..5c6fec65c8bac 100644
--- a/llvm/test/CodeGen/X86/llc-start-stop.ll
+++ b/llvm/test/CodeGen/X86/llc-start-stop.ll
@@ -18,7 +18,7 @@
 ; RUN: llc < %s -debug-pass=Structure -start-after=loop-reduce -o /dev/null 2>&1 | FileCheck %s -check-prefix=START-AFTER
 ; START-AFTER: -gc-lowering
 ; START-AFTER: FunctionPass Manager
-; START-AFTER-NEXT: Lower Garbage Collection Instructions
+; START-AFTER: Lower Garbage Collection Instructions
 
 ; RUN: llc < %s -debug-pass=Structure -start-before=loop-reduce -o /dev/null 2>&1 | FileCheck %s -check-prefix=START-BEFORE
 ; START-BEFORE: -machine-branch-prob -regalloc-evict -regalloc-priority -domtree



More information about the llvm-commits mailing list