[llvm] r289182 - [SCCP] Make the test added in r289175 more meaningful.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 8 19:49:21 PST 2016
Author: davide
Date: Thu Dec 8 21:49:20 2016
New Revision: 289182
URL: http://llvm.org/viewvc/llvm-project?rev=289182&view=rev
Log:
[SCCP] Make the test added in r289175 more meaningful.
Add a comment while here.
Modified:
llvm/trunk/test/Transforms/SCCP/logical-nuke.ll
Modified: llvm/trunk/test/Transforms/SCCP/logical-nuke.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SCCP/logical-nuke.ll?rev=289182&r1=289181&r2=289182&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SCCP/logical-nuke.ll (original)
+++ llvm/trunk/test/Transforms/SCCP/logical-nuke.ll Thu Dec 8 21:49:20 2016
@@ -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
}
More information about the llvm-commits
mailing list