public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] for PR 17560
@ 2004-10-09  8:15 Zdenek Dvorak
  2004-10-11 18:29 ` Richard Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: Zdenek Dvorak @ 2004-10-09  8:15 UTC (permalink / raw)
  To: gcc-patches

Hello,

scev needs the irreducible loops to be marked, otherwise it can
get stuck in one and recurse infinitely.

Bootstrapped & regtested on x86_64.

Zdenek

	PR tree-optimization/17560
	* predict.c (tree_estimate_probability): Mark irreducible
	loops.

Index: predict.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/predict.c,v
retrieving revision 1.128
diff -c -3 -p -r1.128 predict.c
*** predict.c	28 Sep 2004 07:59:48 -0000	1.128
--- predict.c	8 Oct 2004 20:15:44 -0000
*************** tree_estimate_probability (void)
*** 1300,1305 ****
--- 1300,1306 ----
  
    tree_bb_level_predictions ();
  
+   mark_irreducible_loops (&loops_info);
    predict_loops (&loops_info, false);
  
    FOR_EACH_BB (bb)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-11 18:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-09  8:15 [patch] for PR 17560 Zdenek Dvorak
2004-10-11 18:29 ` Richard Henderson

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).