aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/SCCP/logical-nuke.ll
blob: 5b4f84260048ab3501b6e0bc5cba201fe8137ada (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-as < %s | opt -sccp | llvm-dis | grep 'ret int 0'

; Test that SCCP has basic knowledge of when and/or nuke overdefined values.

int %test(int %X) {
	%Y = and int %X, 0
	ret int %Y
}