]> git.ipfire.org Git - thirdparty/gcc.git/commit
final: go down ASHIFT in walk_alter_subreg
authorMichael Matz <matz@suse.de>
Thu, 22 Aug 2024 15:03:56 +0000 (17:03 +0200)
committerMichael Matz <matz@suse.de>
Tue, 27 Aug 2024 13:31:28 +0000 (15:31 +0200)
commit359209bdc7245f8768b5044acded8509545e4990
treed644e6268f54cc06e3711d24641611f97965faf1
parent75ef21665cb924265b818b08babbc7ec3108c876
final: go down ASHIFT in walk_alter_subreg

when experimenting with m68k plus LRA one of the
changes in the backend is to accept ASHIFTs (not only
MULT) as scale code for address indices.  When then not
turning on LRA but using reload those addresses are
presented to it which chokes on them.  While reload is
going away the change to make them work doesn't really hurt
(and generally seems useful, as MULT and ASHIFT really are
no different).  So just add it.

PR target/116413
* final.cc (walk_alter_subreg): Recurse on AHIFT.
gcc/final.cc