summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/nothrow.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/InstCombine/nothrow.ll')
-rw-r--r--llvm/test/Transforms/InstCombine/nothrow.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/nothrow.ll b/llvm/test/Transforms/InstCombine/nothrow.ll
new file mode 100644
index 00000000000..08d90bfbd7d
--- /dev/null
+++ b/llvm/test/Transforms/InstCombine/nothrow.ll
@@ -0,0 +1,8 @@
+; RUN: opt < %s -instcombine -S | not grep call
+; rdar://6880732
+declare double @t1(i32) readonly
+
+define void @t2() nounwind {
+ call double @t1(i32 42) ;; dead call even though callee is not nothrow.
+ ret void
+}
OpenPOWER on IntegriCloud