just remove this xform which is subsumed by others.
[oota-llvm.git] / test / Transforms / InstCombine / cast-propagate.ll
1 ; RUN: opt < %s -instcombine -mem2reg -S | \
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 }