aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/Inline/zero-cost.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/Inline/zero-cost.ll')
-rw-r--r--test/Transforms/Inline/zero-cost.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Transforms/Inline/zero-cost.ll b/test/Transforms/Inline/zero-cost.ll
new file mode 100644
index 000000000000..8e7194a1963b
--- /dev/null
+++ b/test/Transforms/Inline/zero-cost.ll
@@ -0,0 +1,17 @@
+; RUN: opt -inline -S %s | FileCheck %s
+
+define void @f() {
+entry:
+ tail call void @g()
+ unreachable
+
+; CHECK-LABEL: @f
+; CHECK-NOT: call
+; CHECK: unreachable
+}
+
+define void @g() {
+entry:
+ unreachable
+}
+