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
Bump version to 19.1.0-rc3
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
InstCombine
/
cast-call-combine.ll
blob
00922b7a58a87585ad2f727e8fa8ed92bf8efb1d
1
; RUN: opt < %s -passes='function(instcombine),always-inline' -S | FileCheck %s
2
3
define internal void @foo(ptr) alwaysinline {
4
ret void
5
}
6
7
define void @bar() noinline noreturn {
8
unreachable
9
}
10
11
define void @test() {
12
br i1 false, label %then, label %else
13
14
then:
15
call void @bar()
16
unreachable
17
18
else:
19
; CHECK-NOT: call
20
call void @foo (ptr null)
21
ret void
22
}
23