InstCombine: Fold comparisons between unguessable allocas and other pointers
[oota-llvm.git] / test / Transforms / Reassociate / 2002-05-15-AgressiveSubMove.ll
1 ; RUN: opt < %s -reassociate -S | FileCheck %s
2
3 define i32 @test1(i32 %A) {
4 ; CHECK-LABEL: test1
5 ; CHECK: ret i32 0
6   %X = add i32 %A, 1
7   %Y = add i32 %A, 1
8   %r = sub i32 %X, %Y
9   ret i32 %r
10 }