llvm-6502/test/Transforms/SCCP/logical-nuke.ll

9 lines
195 B
LLVM
Raw Normal View History

; 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
}