From 71d050315704c23b235594d3fad5268c12d825e3 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 4 Nov 2011 18:32:42 +0000 Subject: Teach instsimplify to simplify calls to undef. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143719 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstSimplify/undef.ll | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/Transforms') diff --git a/test/Transforms/InstSimplify/undef.ll b/test/Transforms/InstSimplify/undef.ll index 8134cc8..9f5a1e8 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 +} -- cgit v1.1