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]

Re: regmove patch


> The patch is pretty simple, we update REG_LIVE_LENGTH and REG_N_CALLS_CROSSED
> when we make a successful substitution.

You have removed the adjustment of REG_N_REFS for dregno.

Otherwise, it seems OK.

However, I thionk we would better code if we undo the initial substitution
if we can't make a proper replacement.  If we made validate_replace_rtx_1
non-static, or created another interface function for it that doesn't
call apply_change_group, that should be pretty straingtforward, and actually
make optimize_reg_copy_1 simpler.


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