[InstructionCombining] prepareICWorklistFromFunction halts in infinite loop with...
[oota-llvm.git] / test / Transforms / LoopUnroll / pr10813.ll
1 ; RUN: opt < %s -loop-unroll -disable-output
2
3 define void @"f_fu___REFUf[]REFUf[]Uf"() nounwind {
4 allocas:
5   br i1 undef, label %cif_mask_all, label %cif_mixed_test_all
6
7 cif_mask_all:                                     ; preds = %allocas
8   unreachable
9
10 cif_mixed_test_all:                               ; preds = %allocas
11   br label %pl_loop.i964
12
13 pl_loop.i964:                                     ; preds = %pl_loopend.i973, %cif_mixed_test_all
14   %0 = phi i32 [ %pl_nextlane.i971, %pl_loopend.i973 ], [ 0, %cif_mixed_test_all ]
15   br i1 undef, label %pl_dolane.i970, label %pl_loopend.i973
16
17 pl_dolane.i970:                                   ; preds = %pl_loop.i964
18   %storeval.i.i969 = extractelement <4 x i8> <i8 0, i8 1, i8 2, i8 3>, i32 %0
19   store i8 %storeval.i.i969, i8* undef, align 1
20   br label %pl_loopend.i973
21
22 pl_loopend.i973:                                  ; preds = %pl_dolane.i970, %pl_loop.i964
23   %pl_nextlane.i971 = add i32 %0, 1
24   %exitcond5 = icmp ne i32 %pl_nextlane.i971, 5
25   br i1 %exitcond5, label %pl_loop.i964, label %__scatter_base_offsets_i8.exit974
26
27 __scatter_base_offsets_i8.exit974:                ; preds = %pl_loopend.i973
28   unreachable
29 }