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]

PR middle-end/52214


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


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