summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2011-11-04 18:32:42 +0000
committerDan Gohman <gohman@apple.com>2011-11-04 18:32:42 +0000
commit71d050315704c23b235594d3fad5268c12d825e3 (patch)
tree15ddf159c60ed3223809791456baa648bfe4be69 /test
parent73a1ad8f0560f01830fd206e84d4a21e5b3b7f59 (diff)
downloadllvm-71d050315704c23b235594d3fad5268c12d825e3.tar.gz
llvm-71d050315704c23b235594d3fad5268c12d825e3.tar.bz2
llvm-71d050315704c23b235594d3fad5268c12d825e3.tar.xz
Teach instsimplify to simplify calls to undef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143719 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstSimplify/undef.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/InstSimplify/undef.ll b/test/Transforms/InstSimplify/undef.ll
index 8134cc8487..9f5a1e82f5 100644
--- a/test/Transforms/InstSimplify/undef.ll
+++ b/test/Transforms/InstSimplify/undef.ll
@@ -125,3 +125,10 @@ define i64 @test17(i64 %a) {
%r = select i1 undef, i64 undef, i64 %a
ret i64 %r
}
+
+; @test18
+; CHECK: ret i64 undef
+define i64 @test18(i64 %a) {
+ %r = call i64 (i64)* undef(i64 %a)
+ ret i64 %r
+}