1 ; RUN: opt < %s -gvn -S | not grep tmp2
2 ; PR2213
3
4 define i32* @f(i8* %x) {
5 entry:
6 %tmp = call i8* @m( i32 12 ) ; <i8*> [#uses=2]
7 %tmp1 = bitcast i8* %tmp to i32* ; <i32*> [#uses=0]
8 %tmp2 = bitcast i8* %tmp to i32* ; <i32*> [#uses=0]
9 ret i32* %tmp2
10 }
11
12 declare i8* @m(i32)
13