1 ; RUN: opt < %s -sccp -S | FileCheck %s
3 ; Test that SCCP has basic knowledge of when and/or/mul nuke overdefined values.
7 define i32 @test(i32 %X) {
14 define i32 @test2(i32 %X) {
21 define i32 @test3(i32 %X) {
22 %Y = and i32 undef, %X
28 define i32 @test4(i32 %X) {
33 ; X * 0 = 0 even if X is overdefined.
36 define i32 @test5(i32 %foo) {
37 %patatino = mul i32 %foo, 0