PR middle-end/52214

Jan Hubicka hubicka@ucw.cz
Mon Feb 13 23:53:00 GMT 2012


Hi,
this patch fixes typo I introduced in my patch fixing infinte recursion of predict_paths_for_bb.
While converting the check from aux pointers to bitmaps, I got bitmap_set_bit
wrong.

Bootstrapped/regtested x86_64-linux, comitted.

	PR middle-end/52214
	* predict.c (predict_paths_for_bb): Fix thinko in previous patch.

Index: predict.c
===================================================================
*** predict.c	(revision 184179)
--- predict.c	(working copy)
*************** predict_paths_for_bb (basic_block cur, b
*** 1869,1875 ****
  	 prevent visiting given BB twice.  */
        if (found)
          predict_edge_def (e, pred, taken);
!       else if (!bitmap_set_bit (visited, e->src->index))
  	predict_paths_for_bb (e->src, e->src, pred, taken, visited);
      }
    for (son = first_dom_son (CDI_POST_DOMINATORS, cur);
--- 1869,1875 ----
  	 prevent visiting given BB twice.  */
        if (found)
          predict_edge_def (e, pred, taken);
!       else if (bitmap_set_bit (visited, e->src->index))
  	predict_paths_for_bb (e->src, e->src, pred, taken, visited);
      }
    for (son = first_dom_son (CDI_POST_DOMINATORS, cur);



More information about the Gcc-patches mailing list