mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-19 01:13:25 +00:00
5c4cd0d82e
unswitch when frontier includes basic blocks that are not inside loop. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42654 91177308-0d34-0410-b5e6-96231b3b80d8
30 lines
669 B
LLVM
30 lines
669 B
LLVM
; RUN: llvm-as < %s | opt -licm -loop-unroll -disable-output
|
|
|
|
@resonant = external global i32 ; <i32*> [#uses=2]
|
|
|
|
define void @weightadj() {
|
|
entry:
|
|
br label %bb
|
|
|
|
bb: ; preds = %bb158, %entry
|
|
store i32 0, i32* @resonant, align 4
|
|
br i1 false, label %g.exit, label %bb158
|
|
|
|
g.exit: ; preds = %bb68, %bb
|
|
br i1 false, label %bb68, label %cond_true
|
|
|
|
cond_true: ; preds = %g.exit
|
|
store i32 1, i32* @resonant, align 4
|
|
br label %bb68
|
|
|
|
bb68: ; preds = %cond_true, %g.exit
|
|
%tmp71 = icmp slt i32 0, 0 ; <i1> [#uses=1]
|
|
br i1 %tmp71, label %g.exit, label %bb158
|
|
|
|
bb158: ; preds = %bb68, %bb
|
|
br i1 false, label %bb, label %return
|
|
|
|
return: ; preds = %bb158
|
|
ret void
|
|
}
|