Lines Matching refs:loop
3 ;; RUN: opt %s -place-safepoints -spp-counted-loop-trip-width=32 -S | FileCheck %s
4 ;; RUN: opt %s -place-safepoints -spp-counted-loop-trip-width=64 -S | FileCheck %s -check-prefix=CO…
7 ; A simple counted loop with trivially known range
12 ; CHECK-LABEL: loop
17 br label %loop
19 loop:
20 %counter = phi i32 [ 0 , %entry ], [ %counter.inc , %loop ]
23 br i1 %counter.cmp, label %loop, label %exit
29 ; The same counted loop, but with an unknown early exit
34 ; CHECK-LABEL: loop
39 br label %loop
41 loop:
48 br i1 %counter.cmp, label %loop, label %exit
59 ; CHECK-LABEL: loop
64 br label %loop
66 loop:
67 %counter = phi i8 [ 0 , %entry ], [ %counter.inc , %loop ]
70 br i1 %counter.cmp, label %loop, label %exit
81 ; CHECK-LABEL: loop
88 ; COUNTED-64-LABEL: loop
93 br label %loop
95 loop:
96 %counter = phi i64 [ 0 , %entry ], [ %counter.inc , %loop ]
99 br i1 %counter.cmp, label %loop, label %exit
105 ; This loop can run infinitely (for %upper == INT64_MAX) so it needs a
111 ; CHECK-LABEL: loop
118 ; COUNTED-64-LABEL: loop
123 br label %loop
125 loop:
126 %counter = phi i64 [ 0 , %entry ], [ %counter.inc , %loop ]
129 br i1 %counter.cmp, label %loop, label %exit