Re: [PATCH] For -Os change movabsq $(imm32 << shift), %rX[xip] to movl $imm2, %eX[xip]; shl $shift, %rX[xip] (PR target/82339)

2017-09-28 Thread Uros Bizjak
On Wed, Sep 27, 2017 at 3:36 PM, Jakub Jelinek wrote: > Hi! > > Doing a movl + shlq by constant seems to be 1 byte shorter > than movabsq, so this patch attempts to use the former form > unless flags is live. > > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? > > Performance-

[PATCH] For -Os change movabsq $(imm32 << shift), %rX[xip] to movl $imm2, %eX[xip]; shl $shift, %rX[xip] (PR target/82339)

2017-09-27 Thread Jakub Jelinek
Hi! Doing a movl + shlq by constant seems to be 1 byte shorter than movabsq, so this patch attempts to use the former form unless flags is live. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? Performance-wise, not really sure what is a win (on i7-5960X on the testcase in th