Teach InstructionSimplify to fold (A & B) & A -> A & B and (A | B) | A -> A | B.
[oota-llvm.git] / test / Transforms / InstCombine / 2004-12-08-RemInfiniteLoop.ll
1 ; RUN: opt < %s -instcombine
2
3 define i32 @test(i32 %X) {
4         %Y = srem i32 %X, undef         ; <i32> [#uses=1]
5         ret i32 %Y
6 }
7