summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/check-debugify-preserves-analyses.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/DebugInfo/check-debugify-preserves-analyses.ll')
-rw-r--r--llvm/test/DebugInfo/check-debugify-preserves-analyses.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/check-debugify-preserves-analyses.ll b/llvm/test/DebugInfo/check-debugify-preserves-analyses.ll
new file mode 100644
index 00000000000..58b865f22f9
--- /dev/null
+++ b/llvm/test/DebugInfo/check-debugify-preserves-analyses.ll
@@ -0,0 +1,12 @@
+; RUN: opt < %s -globals-aa -functionattrs | \
+; RUN: opt -S -strip -strip-dead-prototypes -strip-module-flags > %t.no_dbg
+
+; RUN: opt < %s -debugify-each -globals-aa -functionattrs | \
+; RUN: opt -S -strip -strip-dead-prototypes -strip-module-flags > %t.with_dbg
+
+; RUN: diff %t.no_dbg %t.with_dbg
+
+define i32 @f_1(i32 %x) {
+ %tmp = call i32 @f_1(i32 0) [ "deopt"() ]
+ ret i32 0
+}
OpenPOWER on IntegriCloud