1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 23:42:52 +01:00
llvm-mirror/test/Regression/Transforms/LICM/2003-12-11-SinkingToPHI.ll
2003-12-11 22:15:11 +00:00

21 lines
312 B
LLVM

; RUN: llvm-as < %s | opt -licm | lli
implementation ; Functions:
int %main() {
entry:
br label %Loop
Loop:
br bool true, label %LoopCont, label %Out
LoopCont:
%X = add int 1, 0
br bool true, label %Out, label %Loop
Out:
%V = phi int [ 2, %Loop], [ %X, %LoopCont]
%V2 = sub int %V, 1
ret int %V2
}