repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Re-land [openmp] Fix warnings when building on Windows with latest MSVC or Clang...
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
GVN
/
bitcast-of-call.ll
blob
6c4e8d29899774869680dd9606e24e972ac1a026
1
; RUN: opt < %s -passes=gvn -S | FileCheck %s
2
; PR2213
3
4
define ptr @f(ptr %x) {
5
entry:
6
%tmp = call ptr @m( i32 12 ) ; <ptr> [#uses=2]
7
%tmp1 = bitcast ptr %tmp to ptr ; <ptr> [#uses=0]
8
%tmp2 = bitcast ptr %tmp to ptr ; <ptr> [#uses=0]
9
; CHECK-NOT: %tmp2
10
ret ptr %tmp2
11
}
12
13
declare ptr @m(i32)