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
[RISCV] Rename a lambda to have plural nouns to reflect that it contains a loop. NFC
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
Inline
/
cfg_preserve_test.ll
blob
103bc0d0a1c81215295f2e640a088ebcc65932ce
1
; This test ensures that inlining an "empty" function does not destroy the CFG
2
;
3
; RUN: opt < %s -passes=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