[llvm] d8fb46e - llvm-reduce: Remove test dependence on registered targets

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 21 07:50:35 PST 2022


Author: Matt Arsenault
Date: 2022-12-21T10:50:21-05:00
New Revision: d8fb46ee5555e73ab7a835b0098d0d7ee371c18b

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

LOG: llvm-reduce: Remove test dependence on registered targets

This reverts e4b126cc2d33033a5538d72a88f6aa153ac8b757 and
e57ab8fe91f06e71d3de2df07e6c7efd2f0c6078.

This previously depended on where the target happened to construct (or
not) the MachineFunctionInfo during the initial MIR construction. Now
that the MachineFunctionInfo is consistently constructed at
MachineFunction construction time, this should always work.

Added: 
    

Modified: 
    llvm/test/tools/llvm-reduce/file-output-type.test

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/llvm-reduce/file-output-type.test b/llvm/test/tools/llvm-reduce/file-output-type.test
index bbfbeb2fc158a..4d7b35d7d7f23 100644
--- a/llvm/test/tools/llvm-reduce/file-output-type.test
+++ b/llvm/test/tools/llvm-reduce/file-output-type.test
@@ -1,4 +1,3 @@
-# REQUIRES: x86-registered-target
 # RUN: rm -f reduced.ll reduced.bc
 
 # RUN: llvm-as -o test-output-format.bc %p/Inputs/test-output-format.ll
@@ -41,7 +40,7 @@
 
 
 # Make sure MIR ignores requests for bitcode
-# RUN: llvm-reduce -mtriple=x86_64-- -output-bitcode --delta-passes=instructions -o %t.3  --test FileCheck --test-arg --check-prefix=MIR --test-arg %s --test-arg --input-file %p/Inputs/test-output-format.mir
+# RUN: llvm-reduce -output-bitcode --delta-passes=instructions -o %t.3 --test FileCheck --test-arg --check-prefix=MIR --test-arg %s --test-arg --input-file %p/Inputs/test-output-format.mir
 # RUN: llc -x mir -run-pass=none -o /dev/null %t.3
 
 


        


More information about the llvm-commits mailing list