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
[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
GlobalDCE
/
2003-07-01-SelfReference.ll
blob
67b096d4cda7ba7edb8c250be2b71c47bcd60f60
1
; distilled from 255.vortex
2
; RUN: opt < %s -passes=globaldce -S | FileCheck %s
3
4
; CHECK-NOT: testfunc
5
6
declare ptr @getfunc()
7
8
define internal i1 @testfunc() {
9
%F = call ptr @getfunc() ; <ptr> [#uses=1]
10
%c = icmp eq ptr %F, @testfunc ; <i1> [#uses=1]
11
ret i1 %c
12
}
13