On 5/18/2021 2:56 AM, Joern Rennecke wrote:
I find that when compiling some files, lra goes into an infinite loop
reloading constant
addresses.  This patch allows them to just be recognized as matching addresses
immediately, which also saves a bit of space for a few other files.

Bootstrapped and regression tested on x86_64-pc-linux-gnu.

process_addr_reg-elim.txt

gcc/
        * lra-constraints.c: New arguments mem_mode and as.  Changed caller.
        If equivalence search has yielded a constant that is valid as an
        address, use it.

At first glance it seems to me like you're papering over a target bug.  Vlad's got the final call though.


jeff


Reply via email to