llvm-reduce: Remove test dependence on registered targets
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 21 Dec 2022 15:46:23 +0000 (10:46 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 21 Dec 2022 15:50:21 +0000 (10:50 -0500)
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.

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

index bbfbeb2..4d7b35d 100644 (file)
@@ -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