Re: [PATCH] Small reg-stack improvement (PR target/70465)

2017-02-22 Thread Jeff Law
On 02/21/2017 02:23 PM, Jakub Jelinek wrote: Hi! As reported by Uros, the fld a fld b fxchg %st(1) optimization to fld b fld a misses several important cases, one is FLOAT_EXTEND memory loads where the memory is SFmode or DFmode but we extend it to a wider mode, and the other is when we load a k

Re: [PATCH] Small reg-stack improvement (PR target/70465)

2017-02-21 Thread Jakub Jelinek
On Tue, Feb 21, 2017 at 10:23:47PM +0100, Jakub Jelinek wrote: > As reported by Uros, the > fld a > fld b > fxchg %st(1) > optimization to > fld b > fld a > misses several important cases, one is FLOAT_EXTEND memory loads where > the memory is SFmode or DFmode but we extend it to a wider mode, and

[PATCH] Small reg-stack improvement (PR target/70465)

2017-02-21 Thread Jakub Jelinek
Hi! As reported by Uros, the fld a fld b fxchg %st(1) optimization to fld b fld a misses several important cases, one is FLOAT_EXTEND memory loads where the memory is SFmode or DFmode but we extend it to a wider mode, and the other is when we load a known i?87 constant like 0.0, 1.0, PI etc. Boot