repo.or.cz
/
llvm-core.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[ARM] Better OR's for MVE compares
[llvm-core.git]
/
test
/
Transforms
/
Inline
/
cfg_preserve_test.ll
blob
c5b6b1bffc1d96b20ef6c567fcee3acd60bae7ed
1
; This test ensures that inlining an "empty" function does not destroy the CFG
2
;
3
; RUN: opt < %s -inline -S | FileCheck %s
4
5
define i32 @func(i32 %i) {
6
ret i32 %i
7
}
8
9
10
define i32 @main() {
11
; CHECK-LABEL: define i32 @main()
12
entry:
13
%X = call i32 @func(i32 7)
14
; CHECK-NOT: call
15
; CHECK-NOT: br
16
17
ret i32 %X
18
; CHECK: ret i32 7
19
}
20