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]

Re: [PATCH] Fix PR47271: only if-convert full writes.


On Mon, Jan 24, 2011 at 02:31:24PM -0600, Sebastian Pop wrote:
> @@ -774,6 +788,14 @@ if_convertible_bb_p (struct loop *loop, basic_block bb, basic_block exit_bb)
>  	return false;
>        }
>  
> +  if (EDGE_COUNT (bb->preds) > 2)
> +    return false;
> +

The above 3 lines are redundant with the start of the function:

  if (EDGE_COUNT (bb->preds) > 2
      || EDGE_COUNT (bb->succs) > 2)
    return false;


> +  if (EDGE_COUNT (bb->preds) == 2
> +      && bb != loop->header
> +      && !bb_postdominates_preds (bb))
> +    return false;
> +
>    return true;
>  }

	Jakub


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