If loop induction variable's start value is less then its exit value then do not...
[oota-llvm.git] / test / Transforms / InstCombine / cast-propagate.ll
1 ; RUN: llvm-as < %s | opt -instcombine -mem2reg | llvm-dis | \
2 ; RUN:    not grep load
3
4 define i32 @test1(i32* %P) {
5         %A = alloca i32         ; <i32*> [#uses=2]
6         store i32 123, i32* %A
7         ; Cast the result of the load not the source
8         %Q = bitcast i32* %A to i32*            ; <i32*> [#uses=1]
9         %V = load i32* %Q               ; <i32> [#uses=1]
10         ret i32 %V
11 }