[llvm] ce76c39 - Fix test outputting to test dir (#171255)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 8 20:56:36 PST 2025


Author: Mircea Trofin
Date: 2025-12-08T20:56:32-08:00
New Revision: ce76c393ce749f854e51e1d32a1bb2e5e092e106

URL: https://github.com/llvm/llvm-project/commit/ce76c393ce749f854e51e1d32a1bb2e5e092e106
DIFF: https://github.com/llvm/llvm-project/commit/ce76c393ce749f854e51e1d32a1bb2e5e092e106.diff

LOG: Fix test outputting to test dir (#171255)

The test introduced in #171118 has `llc` inadvertently producing an
output into the same dir as the test file itself. Most build bots don't
clean up the local git repo, which is assumed to not be written by build
+ test, and patch on top (for build performance reasons), which means
the produced output from the aforementioned PR is treated as a test from
here onwards, by all bots. Since it's missing `RUN` lines, we get
errors, for example
 https://lab.llvm.org/buildbot/#/builders/108/builds/20674

This patch fixes the `llc` line and also removes the `.s`. This avoids
all bot maintainers go restart their bots. Then, the cleanup is removed
in #171256.

Added: 
    

Modified: 
    llvm/test/CodeGen/AArch64/arm64-homogeneous-prolog-epilog-tail-call.mir

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/AArch64/arm64-homogeneous-prolog-epilog-tail-call.mir b/llvm/test/CodeGen/AArch64/arm64-homogeneous-prolog-epilog-tail-call.mir
index 8a09df4693118..ec094109cad6e 100644
--- a/llvm/test/CodeGen/AArch64/arm64-homogeneous-prolog-epilog-tail-call.mir
+++ b/llvm/test/CodeGen/AArch64/arm64-homogeneous-prolog-epilog-tail-call.mir
@@ -1,4 +1,5 @@
-# RUN: llc -verify-machineinstrs -mtriple=arm64-applie-ios7.0 -start-before=aarch64-lower-homogeneous-prolog-epilog -homogeneous-prolog-epilog %s
+# RUN: rm -rf %S/arm64-homogeneous-prolog-epilog-tail-call.s
+# RUN: llc -verify-machineinstrs -mtriple=arm64-applie-ios7.0 -start-before=aarch64-lower-homogeneous-prolog-epilog -homogeneous-prolog-epilog %s -o /dev/null
 #
 # This test ensures defined registers are preserved after lowering homogeneous
 # epilog into helper calls. Without the fix, the verifier would complain about


        


More information about the llvm-commits mailing list