Re: [RS6000] cost SLOW_UNALIGNED_ACCESS

2016-08-02 Thread Alan Modra
On Tue, Aug 02, 2016 at 10:31:33AM -0500, Segher Boessenkool wrote: > On Wed, Aug 03, 2016 at 12:05:07AM +0930, Alan Modra wrote: > > As noted in the last patch, rs6000_rtx_costs ought to cost slow > > unaligned mems. This stops combine merging loads/stores with a > > mode-changing SET subreg, if

Re: [RS6000] cost SLOW_UNALIGNED_ACCESS

2016-08-02 Thread Segher Boessenkool
On Wed, Aug 03, 2016 at 12:05:07AM +0930, Alan Modra wrote: > As noted in the last patch, rs6000_rtx_costs ought to cost slow > unaligned mems. This stops combine merging loads/stores with a > mode-changing SET subreg, if the load/store in the subreg mode would > be slow. Costing slow mems at 100

[RS6000] cost SLOW_UNALIGNED_ACCESS

2016-08-02 Thread Alan Modra
As noted in the last patch, rs6000_rtx_costs ought to cost slow unaligned mems. This stops combine merging loads/stores with a mode-changing SET subreg, if the load/store in the subreg mode would be slow. Costing slow mems at 100 insns is just an order of magnitude estimate. (The alignment inter