[Bug tree-optimization/74585] SRA forces parameters to memory causing awful code generation

2016-08-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=74585 Richard Biener changed: What|Removed |Added Keywords||missed-optimization Status|

[Bug tree-optimization/74585] SRA forces parameters to memory causing awful code generation

2016-08-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=74585 --- Comment #3 from Richard Biener --- That is, compare DECL_RTL for a in the good/bad case and see how it arrives so.

[Bug tree-optimization/74585] SRA forces parameters to memory causing awful code generation

2016-08-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=74585 --- Comment #4 from Richard Biener --- Bad case: (mem/c:BLK (plus:DI (reg/f:DI 150 virtual-stack-vars) (const_int 64 [0x40])) [1 a+0 S64 A128]) #0 set_decl_rtl (t=, x=0x2c1ae960) at /space/rguenther/src/svn/trunk/gcc/emit-rtl.c

[Bug tree-optimization/74585] SRA forces parameters to memory causing awful code generation

2016-08-12 Thread wschmidt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=74585 --- Comment #5 from Bill Schmidt --- (In reply to Richard Biener from comment #1) > The issue is not SRA pushing things to memory - it doesn't. The issue is > that in the GIMPLE IL the parameter appears as "memory" as it is an > aggregate type.

[Bug tree-optimization/74585] SRA forces parameters to memory causing awful code generation

2016-08-12 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=74585 --- Comment #6 from rguenther at suse dot de --- On August 12, 2016 3:46:46 PM GMT+02:00, "wschmidt at gcc dot gnu.org" wrote: >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=74585 > >--- Comment #5 from Bill Schmidt --- >(In reply to Richard Bie