public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-68] Avoid unnecessary epilogues from tree_unroll_loop
@ 2023-04-19  9:54 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2023-04-19  9:54 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:01e79e21bbb2d10ecac784d383cefb88d2e20692

commit r14-68-g01e79e21bbb2d10ecac784d383cefb88d2e20692
Author: Richard Biener <rguenther@suse.de>
Date:   Thu Mar 9 10:56:57 2023 +0100

    Avoid unnecessary epilogues from tree_unroll_loop
    
    The following fixes the condition determining whether we need an
    epilogue.
    
            * tree-ssa-loop-manip.cc (determine_exit_conditions): Fix
            no epilogue condition.

Diff:
---
 gcc/tree-ssa-loop-manip.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/tree-ssa-loop-manip.cc b/gcc/tree-ssa-loop-manip.cc
index 09acc1c94cc..4ef27bae515 100644
--- a/gcc/tree-ssa-loop-manip.cc
+++ b/gcc/tree-ssa-loop-manip.cc
@@ -1010,7 +1010,7 @@ determine_exit_conditions (class loop *loop, class tree_niter_desc *desc,
       /* Convert the latch count to an iteration count.  */
       tree niter = fold_build2 (PLUS_EXPR, type, desc->niter,
 				build_one_cst (type));
-      if (multiple_of_p (type, niter, bigstep))
+      if (multiple_of_p (type, niter, build_int_cst (type, factor)))
 	return;
     }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-19  9:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-19  9:54 [gcc r14-68] Avoid unnecessary epilogues from tree_unroll_loop Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).