1 /* Perform doloop optimizations
2 Copyright (C) 1999, 2000 Free Software Foundation, Inc.
3 Contributed by Michael P. Hayes (m.hayes@elec.canterbury.ac.nz)
5 This file is part of GNU CC.
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
25 #include "insn-flags.h"
29 #include "hard-reg-set.h"
30 #include "basic-block.h"
34 /* This module is used to modify loops with a determinable number of
35 iterations to use special low-overhead looping instructions.
37 It first validates whether the loop is well behaved and has a
38 determinable number of iterations (either at compile or run-time).
39 It then modifies the loop to use a low-overhead looping pattern as
42 1. A pseudo register is allocated as the loop iteration counter.
44 2. The number of loop iterations is calculated and is stored
47 3. At the end of the loop, the jump insn is replaced by the
48 doloop_end pattern. The compare must remain because it might be
49 used elsewhere. If the loop-variable or condition register are
50 used elsewhere, they will be eliminated by flow.
52 4. An optional doloop_begin pattern is inserted at the top of the
57 #ifdef HAVE_doloop_end
59 static rtx doloop_condition_get
61 static unsigned HOST_WIDE_INT doloop_iterations_max
62 PARAMS ((const struct loop_info
*, enum machine_mode
, int));
63 static int doloop_valid_p
64 PARAMS ((const struct loop
*, rtx
));
65 static int doloop_modify
66 PARAMS ((const struct loop
*, rtx
, rtx
, rtx
, rtx
, rtx
));
67 static int doloop_modify_runtime
68 PARAMS ((const struct loop
*, rtx
, rtx
, rtx
, enum machine_mode
, rtx
));
71 /* Return the loop termination condition for PATTERN or zero
72 if it is not a decrement and branch jump insn. */
74 doloop_condition_get (pattern
)
82 /* The canonical doloop pattern we expect is:
84 (parallel [(set (pc) (if_then_else (condition)
87 (set (reg) (plus (reg) (const_int -1)))
88 (additional clobbers and uses)])
90 Some machines (IA-64) make the decrement conditional on
91 the condition as well, so we don't bother verifying the
92 actual decrement. In summary, the branch must be the
93 first entry of the parallel (also required by jump.c),
94 and the second entry of the parallel must be a set of
95 the loop counter register. */
97 if (GET_CODE (pattern
) != PARALLEL
)
100 cmp
= XVECEXP (pattern
, 0, 0);
101 inc
= XVECEXP (pattern
, 0, 1);
103 /* Check for (set (reg) (something)). */
104 if (GET_CODE (inc
) != SET
|| ! REG_P (SET_DEST (inc
)))
107 /* Extract loop counter register. */
108 reg
= SET_DEST (inc
);
110 /* Check for (set (pc) (if_then_else (condition)
113 if (GET_CODE (cmp
) != SET
114 || SET_DEST (cmp
) != pc_rtx
115 || GET_CODE (SET_SRC (cmp
)) != IF_THEN_ELSE
116 || GET_CODE (XEXP (SET_SRC (cmp
), 1)) != LABEL_REF
117 || XEXP (SET_SRC (cmp
), 2) != pc_rtx
)
120 /* Extract loop termination condition. */
121 condition
= XEXP (SET_SRC (cmp
), 0);
123 if ((GET_CODE (condition
) != GE
&& GET_CODE (condition
) != NE
)
124 || GET_CODE (XEXP (condition
, 1)) != CONST_INT
)
127 if (XEXP (condition
, 0) == reg
)
130 if (GET_CODE (XEXP (condition
, 0)) == PLUS
131 && XEXP (XEXP (condition
, 0), 0) == reg
)
134 /* ??? If a machine uses a funny comparison, we could return a
135 canonicalised form here. */
141 /* Return an estimate of the maximum number of loop iterations for the
142 loop specified by LOOP or zero if the loop is not normal.
143 MODE is the mode of the iteration count and NONNEG is non-zero if
144 the the iteration count has been proved to be non-negative. */
145 static unsigned HOST_WIDE_INT
146 doloop_iterations_max (loop_info
, mode
, nonneg
)
147 const struct loop_info
*loop_info
;
148 enum machine_mode mode
;
151 unsigned HOST_WIDE_INT n_iterations_max
;
155 HOST_WIDE_INT abs_inc
;
159 abs_inc
= INTVAL (loop_info
->increment
);
168 code
= swap_condition (loop_info
->comparison_code
);
169 min_value
= loop_info
->final_equiv_value
;
170 max_value
= loop_info
->initial_equiv_value
;
174 code
= loop_info
->comparison_code
;
175 min_value
= loop_info
->initial_equiv_value
;
176 max_value
= loop_info
->final_equiv_value
;
179 /* Since the loop has a VTOP, we know that the initial test will be
180 true and thus the value of max_value should be greater than the
181 value of min_value. Thus the difference should always be positive
182 and the code must be LT, LE, LTU, LEU, or NE. Otherwise the loop is
183 not normal, e.g., `for (i = 0; i < 10; i--)'. */
189 unsigned HOST_WIDE_INT umax
;
190 unsigned HOST_WIDE_INT umin
;
192 if (GET_CODE (min_value
) == CONST_INT
)
193 umin
= INTVAL (min_value
);
197 if (GET_CODE (max_value
) == CONST_INT
)
198 umax
= INTVAL (max_value
);
200 umax
= ((unsigned)2 << (GET_MODE_BITSIZE (mode
) - 1)) - 1;
202 n_iterations_max
= umax
- umin
;
212 if (GET_CODE (min_value
) == CONST_INT
)
213 smin
= INTVAL (min_value
);
215 smin
= -((unsigned)1 << (GET_MODE_BITSIZE (mode
) - 1));
217 if (GET_CODE (max_value
) == CONST_INT
)
218 smax
= INTVAL (max_value
);
220 smax
= ((unsigned)1 << (GET_MODE_BITSIZE (mode
) - 1)) - 1;
222 n_iterations_max
= smax
- smin
;
227 if (GET_CODE (min_value
) == CONST_INT
228 && GET_CODE (max_value
) == CONST_INT
)
229 n_iterations_max
= INTVAL (max_value
) - INTVAL (min_value
);
231 /* We need to conservatively assume that we might have the maximum
232 number of iterations without any additional knowledge. */
233 n_iterations_max
= ((unsigned)2 << (GET_MODE_BITSIZE (mode
) - 1)) - 1;
240 n_iterations_max
/= abs_inc
;
242 /* If we know that the iteration count is non-negative then adjust
243 n_iterations_max if it is so large that it appears negative. */
245 && n_iterations_max
> ((unsigned)1 << (GET_MODE_BITSIZE (mode
) - 1)))
246 n_iterations_max
= ((unsigned)1 << (GET_MODE_BITSIZE (mode
) - 1)) - 1;
248 return n_iterations_max
;
252 /* Return non-zero if the loop specified by LOOP is suitable for
253 the use of special low-overhead looping instructions. */
255 doloop_valid_p (loop
, jump_insn
)
256 const struct loop
*loop
;
259 const struct loop_info
*loop_info
= LOOP_INFO (loop
);
261 /* The loop must have a conditional jump at the end. */
262 if (! any_condjump_p (jump_insn
)
263 || ! onlyjump_p (jump_insn
))
265 if (loop_dump_stream
)
266 fprintf (loop_dump_stream
,
267 "Doloop: Invalid jump at loop end.\n");
271 /* Give up if a loop has been completely unrolled. */
272 if (loop_info
->n_iterations
== loop_info
->unroll_number
)
274 if (loop_dump_stream
)
275 fprintf (loop_dump_stream
,
276 "Doloop: Loop completely unrolled.\n");
280 /* The loop must have a single exit target. A break or return
281 statement within a loop will generate multiple loop exits.
282 Another example of a loop that currently generates multiple exit
283 targets is for (i = 0; i < (foo ? 8 : 4); i++) { }. */
284 if (loop_info
->has_multiple_exit_targets
)
286 if (loop_dump_stream
)
287 fprintf (loop_dump_stream
,
288 "Doloop: Loop has multiple exit targets.\n");
292 /* An indirect jump may jump out of the loop. */
293 if (loop_info
->has_indirect_jump
)
295 if (loop_dump_stream
)
296 fprintf (loop_dump_stream
,
297 "Doloop: Indirect jump in function.\n");
301 /* A called function may clobber any special registers required for
302 low-overhead looping. */
303 if (loop_info
->has_call
)
305 if (loop_dump_stream
)
306 fprintf (loop_dump_stream
,
307 "Doloop: Function call in loop.\n");
311 /* Some targets (eg, PPC) use the count register for branch on table
312 instructions. ??? This should be a target specific check. */
313 if (loop_info
->has_tablejump
)
315 if (loop_dump_stream
)
316 fprintf (loop_dump_stream
,
317 "Doloop: Computed branch in the loop.\n");
321 if (! loop_info
->increment
)
323 if (loop_dump_stream
)
324 fprintf (loop_dump_stream
,
325 "Doloop: Could not determine iteration info.\n");
329 if (GET_CODE (loop_info
->increment
) != CONST_INT
)
331 if (loop_dump_stream
)
332 fprintf (loop_dump_stream
,
333 "Doloop: Increment not an integer constant.\n");
337 /* There is no guarantee that a NE loop will terminate if the
338 absolute increment is not unity. ??? We could compute this
339 condition at run-time and have a additional jump around the loop
340 to ensure an infinite loop. */
341 if (loop_info
->comparison_code
== NE
342 && INTVAL (loop_info
->increment
) != -1
343 && INTVAL (loop_info
->increment
) != 1)
345 if (loop_dump_stream
)
346 fprintf (loop_dump_stream
,
347 "Doloop: NE loop with non-unity increment.\n");
351 /* Check for loops that may not terminate under special conditions. */
352 if (! loop_info
->n_iterations
353 && ((loop_info
->comparison_code
== LEU
354 && INTVAL (loop_info
->increment
) > 0)
355 || (loop_info
->comparison_code
== GEU
356 && INTVAL (loop_info
->increment
) < 0)))
358 /* If the comparison is LEU and the comparison value is UINT_MAX
359 then the loop will not terminate. Similarly, if the
360 comparison code is GEU and the initial value is 0, the loop
363 Note that with LE and GE, the loop behaviour can be
364 implementation dependent if an overflow occurs, say between
365 INT_MAX and INT_MAX + 1. We thus don't have to worry about
368 ??? We could compute these conditions at run-time and have a
369 additional jump around the loop to ensure an infinite loop.
370 However, it is very unlikely that this is the intended
371 behaviour of the loop and checking for these rare boundary
372 conditions would pessimize all other code. */
373 if (loop_dump_stream
)
374 fprintf (loop_dump_stream
,
375 "Doloop: Possible infinite iteration case ignored.\n");
382 /* Modify the loop to use the low-overhead looping insn where LOOP
383 describes the loop, ITERATIONS is an RTX containing the desired
384 number of loop iterations, ITERATIONS_MAX is a CONST_INT specifying
385 the maximum number of loop iterations, and DOLOOP_INSN is the
386 low-overhead looping insn to emit at the end of the loop. This
387 returns non-zero if it was successful. */
389 doloop_modify (loop
, iterations
, iterations_max
,
390 doloop_seq
, start_label
, condition
)
391 const struct loop
*loop
;
405 jump_insn
= prev_nonnote_insn (loop
->end
);
407 if (loop_dump_stream
)
409 fprintf (loop_dump_stream
, "Doloop: Inserting doloop pattern (");
410 if (GET_CODE (iterations
) == CONST_INT
)
411 fprintf (loop_dump_stream
, HOST_WIDE_INT_PRINT_DEC
,
412 INTVAL (iterations
));
414 fputs ("runtime", loop_dump_stream
);
415 fputs (" iterations).", loop_dump_stream
);
418 /* Discard original jump to continue loop. The original compare
419 result may still be live, so it cannot be discarded explicitly. */
420 delete_insn (jump_insn
);
422 /* Emit the label that will delimit the start of the loop. */
423 emit_label_after (start_label
, loop
->start
);
424 LABEL_NUSES (start_label
)++;
426 counter_reg
= XEXP (condition
, 0);
427 if (GET_CODE (counter_reg
) == PLUS
)
428 counter_reg
= XEXP (counter_reg
, 0);
434 switch (GET_CODE (condition
))
437 /* Currently only NE tests against zero and one are supported. */
438 if (XEXP (condition
, 1) == const0_rtx
)
440 else if (XEXP (condition
, 1) != const1_rtx
)
445 /* Currently only GE tests against zero are supported. */
446 if (XEXP (condition
, 1) != const0_rtx
)
449 /* The iteration count needs decrementing for a GE test. */
452 /* Determine if the iteration counter will be non-negative.
453 Note that the maximum value loaded is iterations_max - 1. */
454 if ((unsigned HOST_WIDE_INT
) INTVAL (iterations_max
)
455 <= ((unsigned)1 << (GET_MODE_BITSIZE (GET_MODE (counter_reg
)) - 1)))
459 /* Abort if an invalid doloop pattern has been generated. */
466 if (GET_CODE (count
) == CONST_INT
)
467 count
= GEN_INT (INTVAL (count
) - 1);
469 count
= expand_binop (GET_MODE (counter_reg
), sub_optab
,
471 0, 0, OPTAB_LIB_WIDEN
);
474 /* Insert initialization of the count register into the loop header. */
475 convert_move (counter_reg
, count
, 1);
476 sequence
= gen_sequence ();
478 emit_insn_before (sequence
, loop
->start
);
480 /* Some targets (eg, C4x) need to initialize special looping
482 #ifdef HAVE_doloop_begin
486 init
= gen_doloop_begin (counter_reg
,
487 GET_CODE (iterations
) == CONST_INT
488 ? iterations
: const0_rtx
, iterations_max
,
489 GEN_INT (loop
->level
));
494 sequence
= gen_sequence ();
496 emit_insn_after (sequence
, loop
->start
);
501 /* Insert the new low-overhead looping insn. */
502 emit_jump_insn_before (doloop_seq
, loop
->end
);
503 jump_insn
= prev_nonnote_insn (loop
->end
);
504 JUMP_LABEL (jump_insn
) = start_label
;
506 /* Add a REG_NONNEG note if the actual or estimated maximum number
507 of iterations is non-negative. */
510 REG_NOTES (jump_insn
)
511 = gen_rtx_EXPR_LIST (REG_NONNEG
, NULL_RTX
, REG_NOTES (jump_insn
));
517 /* Handle the more complex case, where the bounds are not known at
518 compile time. In this case we generate a run_time calculation of
519 the number of iterations. We rely on the existence of a run-time
520 guard to ensure that the loop executes at least once, i.e.,
521 initial_value obeys the loop comparison condition. If a guard is
522 not present, we emit one. The loop to modify is described by LOOP.
523 ITERATIONS_MAX is a CONST_INT specifying the estimated maximum
524 number of loop iterations. DOLOOP_INSN is the low-overhead looping
525 insn to insert. Returns non-zero if loop successfully modified. */
527 doloop_modify_runtime (loop
, iterations_max
,
528 doloop_seq
, start_label
, mode
, condition
)
529 const struct loop
*loop
;
533 enum machine_mode mode
;
536 const struct loop_info
*loop_info
= LOOP_INFO (loop
);
537 HOST_WIDE_INT abs_inc
;
546 enum rtx_code comparison_code
;
548 increment
= loop_info
->increment
;
549 initial_value
= loop_info
->initial_value
;
550 final_value
= loop_info
->final_value
;
553 abs_inc
= INTVAL (increment
);
560 comparison_code
= loop_info
->comparison_code
;
561 unsigned_p
= (comparison_code
== LTU
562 || comparison_code
== LEU
563 || comparison_code
== GTU
564 || comparison_code
== GEU
565 || comparison_code
== NE
);
567 /* The number of iterations (prior to any loop unrolling) is given by:
568 (abs (final - initial) + abs_inc - 1) / abs_inc.
570 However, it is possible for the summation to overflow, and a
573 abs (final - initial) / abs_inc + (abs (final - initial) % abs_inc) != 0
575 If the loop has been unrolled, then the loop body has been
576 preconditioned to iterate a multiple of unroll_number times.
577 The number of iterations of the loop body is simply:
578 abs (final - initial) / (abs_inc * unroll_number).
580 The division and modulo operations can be avoided by requiring
581 that the increment is a power of 2 (precondition_loop_p enforces
582 this requirement). Nevertheless, the RTX_COSTS should be checked
583 to see if a fast divmod is available. */
586 /* abs (final - initial) */
587 diff
= expand_binop (mode
, sub_optab
,
588 copy_rtx (neg_inc
? initial_value
: final_value
),
589 copy_rtx (neg_inc
? final_value
: initial_value
),
590 NULL_RTX
, unsigned_p
, OPTAB_LIB_WIDEN
);
592 if (loop_info
->unroll_number
== 1)
600 shift_count
= exact_log2 (abs_inc
);
604 /* abs (final - initial) / abs_inc */
605 iterations
= expand_binop (GET_MODE (diff
), lshr_optab
,
606 diff
, GEN_INT (shift_count
),
610 /* abs (final - initial) % abs_inc */
611 extra
= expand_binop (GET_MODE (iterations
), and_optab
,
612 diff
, GEN_INT (abs_inc
- 1),
616 /* If (abs (final - initial) % abs_inc == 0) jump past
617 following increment instruction. */
618 label
= gen_label_rtx();
619 emit_cmp_and_jump_insns (extra
, const0_rtx
, EQ
, NULL_RTX
,
620 GET_MODE (extra
), 0, 0, label
);
621 JUMP_LABEL (get_last_insn ()) = label
;
622 LABEL_NUSES (label
)++;
624 /* Increment the iteration count by one. */
625 iterations
= expand_binop (GET_MODE (iterations
), add_optab
,
626 iterations
, GEN_INT (1),
639 /* precondition_loop_p has preconditioned the loop so that the
640 iteration count of the loop body is always a power of 2.
641 Since we won't get an overflow calculating the loop count,
642 the code we emit is simpler. */
643 shift_count
= exact_log2 (loop_info
->unroll_number
* abs_inc
);
647 iterations
= expand_binop (GET_MODE (diff
), lshr_optab
,
648 diff
, GEN_INT (shift_count
),
654 /* If there is a NOTE_INSN_LOOP_VTOP, we have a `for' or `while'
655 style loop, with a loop exit test at the start. Thus, we can
656 assume that the loop condition was true when the loop was
659 `do-while' loops require special treatment since the exit test is
660 not executed before the start of the loop. We need to determine
661 if the loop will terminate after the first pass and to limit the
662 iteration count to one if necessary. */
667 if (loop_dump_stream
)
668 fprintf (loop_dump_stream
, "Doloop: Do-while loop.\n");
670 /* A `do-while' loop must iterate at least once. If the
671 iteration count is bogus, we set the iteration count to 1.
672 Note that if the loop has been unrolled, then the loop body
673 is guaranteed to execute at least once. */
674 if (loop_info
->unroll_number
== 1)
676 /* Emit insns to test if the loop will immediately
677 terminate and to set the iteration count to 1 if true. */
678 label
= gen_label_rtx();
679 emit_cmp_and_jump_insns (copy_rtx (initial_value
),
680 copy_rtx (loop_info
->comparison_value
),
681 comparison_code
, NULL_RTX
, mode
, 0, 0,
683 JUMP_LABEL (get_last_insn ()) = label
;
684 LABEL_NUSES (label
)++;
685 emit_move_insn (iterations
, const1_rtx
);
690 sequence
= gen_sequence ();
692 emit_insn_before (sequence
, loop
->start
);
694 return doloop_modify (loop
, iterations
, iterations_max
, doloop_seq
,
695 start_label
, condition
);
699 /* This is the main entry point. Process loop described by LOOP
700 validating that the loop is suitable for conversion to use a low
701 overhead looping instruction, replacing the jump insn where
702 suitable. We distinguish between loops with compile-time bounds
703 and those with run-time bounds. Information from LOOP is used to
704 compute the number of iterations and to determine whether the loop
705 is a candidate for this optimization. Returns non-zero if loop
706 successfully modified. */
708 doloop_optimize (loop
)
709 const struct loop
*loop
;
711 struct loop_info
*loop_info
= LOOP_INFO (loop
);
716 enum machine_mode mode
;
717 unsigned HOST_WIDE_INT n_iterations
;
718 unsigned HOST_WIDE_INT n_iterations_max
;
719 rtx doloop_seq
, doloop_pat
, doloop_reg
;
725 if (loop_dump_stream
)
726 fprintf (loop_dump_stream
,
727 "Doloop: Processing loop %d, enclosed levels %d.\n",
728 loop
->num
, loop
->level
);
730 jump_insn
= prev_nonnote_insn (loop
->end
);
732 /* Check that loop is a candidate for a low-overhead looping insn. */
733 if (! doloop_valid_p (loop
, jump_insn
))
736 /* Determine if the loop can be safely, and profitably,
737 preconditioned. While we don't precondition the loop in a loop
738 unrolling sense, this test ensures that the loop is well behaved
739 and that the increment is a constant integer. */
740 if (! precondition_loop_p (loop
, &initial_value
, &final_value
,
743 if (loop_dump_stream
)
744 fprintf (loop_dump_stream
,
745 "Doloop: Cannot precondition loop.\n");
749 /* Determine or estimate the maximum number of loop iterations. */
750 n_iterations
= loop_info
->n_iterations
;
753 /* This is the simple case where the initial and final loop
754 values are constants. */
755 n_iterations_max
= n_iterations
;
759 int nonneg
= find_reg_note (jump_insn
, REG_NONNEG
, 0) != 0;
761 /* This is the harder case where the initial and final loop
762 values may not be constants. */
763 n_iterations_max
= doloop_iterations_max (loop_info
, mode
, nonneg
);
765 if (! n_iterations_max
)
767 /* We have something like `for (i = 0; i < 10; i--)'. */
768 if (loop_dump_stream
)
769 fprintf (loop_dump_stream
,
770 "Doloop: Not normal loop.\n");
775 /* Account for loop unrolling in the iteration count. This will
776 have no effect if loop_iterations could not determine the number
778 n_iterations
/= loop_info
->unroll_number
;
779 n_iterations_max
/= loop_info
->unroll_number
;
781 if (n_iterations
&& n_iterations
< 3)
783 if (loop_dump_stream
)
784 fprintf (loop_dump_stream
,
785 "Doloop: Too few iterations (%ld) to be profitable.\n",
786 (long int) n_iterations
);
790 iterations
= GEN_INT (n_iterations
);
791 iterations_max
= GEN_INT (n_iterations_max
);
793 /* Generate looping insn. If the pattern FAILs then give up trying
794 to modify the loop since there is some aspect the back-end does
796 start_label
= gen_label_rtx ();
797 doloop_reg
= gen_reg_rtx (mode
);
798 doloop_seq
= gen_doloop_end (doloop_reg
, iterations
, iterations_max
,
799 GEN_INT (loop
->level
), start_label
);
800 if (! doloop_seq
&& mode
!= word_mode
)
802 PUT_MODE (doloop_reg
, word_mode
);
803 doloop_seq
= gen_doloop_end (doloop_reg
, iterations
, iterations_max
,
804 GEN_INT (loop
->level
), start_label
);
808 if (loop_dump_stream
)
809 fprintf (loop_dump_stream
,
810 "Doloop: Target unwilling to use doloop pattern!\n");
814 /* A raw define_insn may yield a plain pattern. If a sequence
815 was involved, the last must be the jump instruction. */
816 if (GET_CODE (doloop_seq
) == SEQUENCE
)
818 doloop_pat
= XVECEXP (doloop_seq
, 0, XVECLEN (doloop_seq
, 0) - 1);
819 if (GET_CODE (doloop_pat
) == JUMP_INSN
)
820 doloop_pat
= PATTERN (doloop_pat
);
822 doloop_pat
= NULL_RTX
;
825 doloop_pat
= doloop_seq
;
828 || ! (condition
= doloop_condition_get (doloop_pat
)))
830 if (loop_dump_stream
)
831 fprintf (loop_dump_stream
,
832 "Doloop: Unrecognizable doloop pattern!\n");
836 if (n_iterations
!= 0)
837 /* Handle the simpler case, where we know the iteration count at
839 return doloop_modify (loop
, iterations
, iterations_max
, doloop_seq
,
840 start_label
, condition
);
842 /* Handle the harder case, where we must add additional runtime tests. */
843 return doloop_modify_runtime (loop
, iterations_max
, doloop_seq
,
844 start_label
, mode
, condition
);
847 #endif /* HAVE_doloop_end */