On Fri, Apr 03, 2020 at 10:43:49PM +1030, Alan Modra wrote: > On Fri, Apr 03, 2020 at 02:13:06PM +0800, luoxhu via Gcc-patches wrote: > > Seems PR94393? Yes, rs6000_emit_set_const calls rs6000_emit_set_long_const > > for DImode. > > I tried unsigned long like 0xabcd87654321, 0xffffabcd87654321 and > > 0xc000000000000000ULL, > > All of them are outside of loop even without my patch. No difference with > > or without > > Alan's patch. > > Segher probably meant the part I'm working on and haven't posted yet, > fixing lots of problems with rs6000_rtx_costs.
I meant PR94393 in fact, but yeah, this is connected *everywhere* :-) > One of the improvements > I'm aiming for is that we should be able to emit code that loads > constants from memory without following optimisation passes converting > the loads from memory to those long sequences of dependent instructions. Yeah. Looking forward to it :-) Segher