This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] for PR 17560


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]