On 11/20/2014 10:48 AM, Zhenqiang Chen wrote:
> +/* Check X clobber CC reg or not. */
> +
> +static bool
> +clobber_cc_p (rtx x)
> +{
> + RTX_CODE code = GET_CODE (x);
> + int i;
> +
> + if (code == CLOBBER
> + && REG_P (XEXP (x, 0))
> + && (GET_MODE_CLASS (GET_MODE (XEXP (x, 0))) == MODE_CC))
> + return TRUE;
> + else if (code == PARALLEL)
> + for (i = 0; i < XVECLEN (x, 0); i++)
> + if (clobber_cc_p (XVECEXP (x, 0, i)))
> + return TRUE;
> + return FALSE;
> +}
Why would you need something like this when modified_between_p or one of its
kin ought to do the job?
r~