[debugify] Add targeted test for 2fa656c, NFC
authorVedant Kumar <vsk@apple.com>
Mon, 13 Jul 2020 21:38:31 +0000 (14:38 -0700)
committerVedant Kumar <vsk@apple.com>
Mon, 13 Jul 2020 21:40:12 +0000 (14:40 -0700)
https://reviews.llvm.org/D78411 introduced test changes which relied on
the ability to strip debugify metadata even if module-level metadata is
missing. This introduces a more targeted test for that ability.

llvm/test/CodeGen/Generic/MIRStripDebug/no-metadata-present.mir [new file with mode: 0644]

diff --git a/llvm/test/CodeGen/Generic/MIRStripDebug/no-metadata-present.mir b/llvm/test/CodeGen/Generic/MIRStripDebug/no-metadata-present.mir
new file mode 100644 (file)
index 0000000..8952003
--- /dev/null
@@ -0,0 +1,7 @@
+# RUN: llc -run-pass=mir-strip-debug -mir-strip-debugify-only=0 -o /dev/null %s
+
+---
+name:            test
+body:             |
+  bb.1:
+...