https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89594

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Like

Index: gcc/tree-if-conv.c
===================================================================
--- gcc/tree-if-conv.c  (revision 269385)
+++ gcc/tree-if-conv.c  (working copy)
@@ -3176,6 +3176,8 @@ pass_if_conversion::execute (function *f
   for (unsigned i = 0; i < preds.length (); ++i)
     {
       gimple *g = preds[i];
+      if (!gimple_bb (g))
+       continue;
       unsigned ifcvt_loop = tree_to_uhwi (gimple_call_arg (g, 0));
       if (!get_loop (fun, ifcvt_loop))
        {

Reply via email to