repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[X86] Simplify some bitmasking and use llvm_unreachable to mark an impossible case...
[llvm-complete.git]
/
test
/
Transforms
/
GVN
/
bitcast-of-call.ll
blob
930e4d7373d3b408b74c9c0d2413ddb3d91f0347
1
; RUN: opt < %s -gvn -S | FileCheck %s
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
; CHECK-NOT: %tmp2
10
ret i32* %tmp2
11
}
12
13
declare i8* @m(i32)