https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120955
--- Comment #35 from Georg-Johann Lay <gjl at gcc dot gnu.org> --- (In reply to fiesh from comment #34) > (In reply to Georg-Johann Lay from comment #33) > > avr.cc::avr_use_by_pieces_infrastructure_p() > > Thank you very much, that's precisely what I was looking for. The problem with that hook is that it is not telling whether the source values are known at link time, in which case no load+store is needed but a load-immediate is enough. So that hook cannot return correct costs.
