[Bug middle-end/92308] Gimple passes could do a better job of forming address CSEs

2020-01-29 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92308 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug middle-end/92308] Gimple passes could do a better job of forming address CSEs

2019-11-04 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92308 --- Comment #7 from Richard Earnshaw --- Reload also had a hook TARGET_LEGITIMIZE_RELOAD_ADDRESS as well. But it had the same problems - lack of context leading to guesswork and therefore too local or too general fix-ups.

[Bug middle-end/92308] Gimple passes could do a better job of forming address CSEs

2019-11-04 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92308 --- Comment #6 from Richard Earnshaw --- (In reply to rguent...@suse.de from comment #5) > On Mon, 4 Nov 2019, rearnsha at gcc dot gnu.org wrote: > I suspect TARGET_LEGITIMIZE_ADDRESS is only applied during > reload/LRA, correct? No, it's calle

[Bug middle-end/92308] Gimple passes could do a better job of forming address CSEs

2019-11-04 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92308 --- Comment #5 from rguenther at suse dot de --- On Mon, 4 Nov 2019, rearnsha at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92308 > > --- Comment #4 from Richard Earnshaw --- ... > But there's no real need to do this

[Bug middle-end/92308] Gimple passes could do a better job of forming address CSEs

2019-11-04 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92308 --- Comment #4 from Richard Earnshaw --- So taking the example I posted in the initial report and compiling with trunk for arm -mcpu=cortex-m4 -mthumb -Os, we get: ldr r3, .L2 movsr2, #1 str r2, [r3, #2060]

[Bug middle-end/92308] Gimple passes could do a better job of forming address CSEs

2019-11-04 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92308 --- Comment #3 from rguenther at suse dot de --- On Mon, 4 Nov 2019, rearnsha at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92308 > > --- Comment #2 from Richard Earnshaw --- > Very few micro-architectures would bene

[Bug middle-end/92308] Gimple passes could do a better job of forming address CSEs

2019-11-04 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92308 --- Comment #2 from Richard Earnshaw --- Very few micro-architectures would benefit from auto-inc style addressing in a sequence like this. With modern super-scaler systems you want to use offset addressing where possible (from a common base).

[Bug middle-end/92308] Gimple passes could do a better job of forming address CSEs

2019-11-04 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92308 Richard Biener changed: What|Removed |Added Keywords||missed-optimization Target|