summaryrefslogtreecommitdiff
path: root/test/CodeGen/MIR
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2016-11-14 21:50:13 +0000
committerTom Stellard <thomas.stellard@amd.com>2016-11-14 21:50:13 +0000
commit107362cf5f2ce05e87e43cda247aa741137cedfe (patch)
tree21de78b4aebb40305b0a487552564dd56a504f4c /test/CodeGen/MIR
parentd84b0f9851ad50d8d2a8e7f3b09f5d9f13f7b6e7 (diff)
RegAllocGreedy: Properly initialize this pass, so that -run-pass will work
Reviewers: qcolombet, MatzeB Subscribers: wdng, llvm-commits Differential Revision: https://reviews.llvm.org/D26572 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/MIR')
-rw-r--r--test/CodeGen/MIR/Generic/runPass.mir11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/MIR/Generic/runPass.mir b/test/CodeGen/MIR/Generic/runPass.mir
new file mode 100644
index 00000000000..bf37bdd1836
--- /dev/null
+++ b/test/CodeGen/MIR/Generic/runPass.mir
@@ -0,0 +1,11 @@
+# RUN: llc -run-pass=greedy -debug-pass=Arguments -o - %s 2>&1 | FileCheck %s
+
+# Check that passes are initialized correctly, so that it's possible to
+# use -run-pass.
+
+---
+# CHECK: name: foo
+name: foo
+body: |
+ bb.0:
+...