Hi Juzhe,
> +static rtx
> +get_fof_set_vl_reg (rtx_insn *rinsn)
> +{
> + if (!fault_first_load_p (rinsn))
> + return NULL_RTX;
> +
> + rtx pat = PATTERN (rinsn);
> + if (GET_CODE (pat) != PARALLEL)
> + return NULL_RTX;
> +
> + if (XVECLEN (pat, 0) != 3)
> + return NULL_RTX;
> +
> + rtx sub = XVECEXP (pat, 0, 2);
> + if (GET_CODE (sub) == SET
> + && GET_CODE (SET_SRC (sub)) == UNSPEC
> + && XINT (SET_SRC (sub), 1) == UNSPEC_READ_VL)
> + return SET_DEST (sub);
> +
> + return NULL_RTX;
> +}
>
> Could we add additional attribute or something to simplify this check ?
Yes, makes sense. I'll do this as a follow-up.
--
Regards
Robin