From: Davide Italiano Date: Fri, 9 Dec 2016 03:49:20 +0000 (+0000) Subject: [SCCP] Make the test added in r289175 more meaningful. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11200e161b7fd93f06a85b98f9c6c8cc695847e7;p=llvm [SCCP] Make the test added in r289175 more meaningful. Add a comment while here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289182 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/SCCP/logical-nuke.ll b/test/Transforms/SCCP/logical-nuke.ll index 76884dbab4b..6ca16de4489 100644 --- a/test/Transforms/SCCP/logical-nuke.ll +++ b/test/Transforms/SCCP/logical-nuke.ll @@ -30,9 +30,10 @@ define i32 @test4(i32 %X) { ret i32 %Y } +; X * 0 = 0 even if X is overdefined. ; CHECK-LABEL: test5 ; CHECK: ret i32 0 define i32 @test5(i32 %foo) { - %patatino = mul i32 %foo, undef + %patatino = mul i32 %foo, 0 ret i32 %patatino }