This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR36194
> I checked out the version before the original change and compared it to the
> version with the patch and there are no check_promoted_subreg-related
> changes other than the formatting fix.
Won't your patch give the following outcome?
if (GET_CODE (x) == SUBREG || REG_P (x))
{
if (GET_CODE (x) == SUBREG
&& SUBREG_PROMOTED_VAR_P (x)
&& REG_P (SUBREG_REG (x)))
record_promoted_value (insn, x);
}
else
That's not the same as the original code:
if (GET_CODE (x) == SUBREG
&& SUBREG_PROMOTED_VAR_P (x)
&& REG_P (SUBREG_REG (x)))
record_promoted_value (insn, x);
else
--
Eric Botcazou