This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Avoid emitting useless notes in GCSE
> It appears saner to make the later passes add the notes
> when they change the source, but if some fail to do that, there is a
> benefit to having the notes placed there by gcse.
This kind of reasoning would justify adding a REG_EQUAL note containing the
source for every single SET emitted in the RTL stream!
> And you asked if there is a benefit to this, not if there was a better way
> to get that benefit...
Yes, because I've had my share of bogus REG_EQUAL notes confusing subsequent
passes. Lean and mean is my motto when it comes to notes. :-)
--
Eric Botcazou