projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Use the new prcontext script.
[oota-llvm.git]
/
test
/
Transforms
/
LICM
/
call_sink_pure_function.ll
1
; RUN: llvm-as < %s | opt -basicaa -licm | llvm-dis | %prcontext strlen 1 | grep Out:
2
declare int %strlen(sbyte*)
3
declare void %foo()
4
5
int %test(sbyte* %P) {
6
br label %Loop
7
8
Loop:
9
%A = call int %strlen(sbyte* %P) ;; Can hoist/sink call
10
br bool false, label %Loop, label %Out
11
12
Out:
13
ret int %A
14
}