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: [Ping] [PATCH, 4/10] expand ccmp


On 10/29/2014 03:30 AM, Zhenqiang Chen wrote:
> +
> +bool
> +ccmp_insn_p (rtx object)
> +{
> +  rtx x = PATTERN (object);
> +  if (targetm.gen_ccmp_first
> +      && GET_CODE (x) == SET
> +      && GET_CODE (XEXP (x, 1)) == COMPARE
> +      && (GET_CODE (XEXP (XEXP (x, 1), 0)) == IOR
> +	  || GET_CODE (XEXP (XEXP (x, 1), 0)) == AND))
> +    return true;
> +  return false;
> +}
> +

With the ifcvt changes I requested, I believe this is now unused.

> +}
> +rtx
> +expand_ccmp_expr (gimple g)

Watch your spacing.  And you're missing the comment before the function.

Otherwise ok.


r~


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