https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122829
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ra
Ever confirmed|0 |1
Last reconfirmed| |2025-11-24
Status|UNCONFIRMED |NEW
Component|other |rtl-optimization
Summary|Optimization: Don't waste a |Optimization: Don't waste a
|call-preserved register if |call-preserved register if
|a variable's value can be |a variable's value can be
|trivially derived |rematerialized with some
| |small cost
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is rematerialization but with a twist. This is almost definitely an NP
complete problem :). So there definitely will be some heurstics.