On Sun, 10 Jun 2012, Oleg Endo wrote: > I've tried some of the cases mentioned in > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50749 > with Sandra's patch applied. Unfortunately it didn't help much.
But thanks for checking! > There > seem to be other things going wrong with auto-inc-dec. Yeah, probably in more than one place. > BTW, auto-inc-dec uses 'set_src_cost' in 'attempt_change' to determine > the address costs. At least the SH target will not respond to that > properly. I was thinking of adding something to sh_rtx_costs to invoke > sh_address_cost as a fix for that, but on the other hand I was wondering > why the target's address cost function isn't used in auto-inc-dec > directly ... Sounds like a bug. TBH, I haven't dug into the real reason why auto-inc-dec-generation is still poor (or whether it by magic has improved dramatically recently), because every so often there's some effort to improve that, alas I don't remember seeing any improvement mentioned for any target I have interest in. brgds, H-P