blob: 80ad8e18fd0f71dcb6a7968eaaa48f4c99359981 [file] [log] [blame]
; RUN: llvm-as < %s | opt -basicaa -licm | llvm-dis | %prcontext strlen 1 | grep Out:
declare int %strlen(sbyte*)
declare void %foo()
int %test(sbyte* %P) {
br label %Loop
Loop:
%A = call int %strlen(sbyte* %P) ;; Can hoist/sink call
br bool false, label %Loop, label %Out
Out:
ret int %A
}