Skip to content

Commit

Permalink
[SCCP] Make the test added in r289175 more meaningful.
Browse files Browse the repository at this point in the history
Add a comment while here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289182 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dcci committed Dec 9, 2016
1 parent 45b7e0e commit 11200e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Transforms/SCCP/logical-nuke.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 11200e1

Please sign in to comment.