Re: [PATCH v2] x86_64: Some SUBREG related optimization tweaks to i386 backend.

2021-10-13 Thread H.J. Lu via Gcc-patches
On Wed, Oct 13, 2021 at 2:08 AM Uros Bizjak via Gcc-patches wrote: > > On Wed, Oct 13, 2021 at 10:23 AM Roger Sayle > wrote: > > > > > > Good catch. I agree with Hongtao that although my testing revealed > > no problems with the previous version of this patch, it makes sense to > > call gen_reg

Re: [PATCH v2] x86_64: Some SUBREG related optimization tweaks to i386 backend.

2021-10-13 Thread Uros Bizjak via Gcc-patches
On Wed, Oct 13, 2021 at 10:23 AM Roger Sayle wrote: > > > Good catch. I agree with Hongtao that although my testing revealed > no problems with the previous version of this patch, it makes sense to > call gen_reg_rtx to generate an pseudo intermediate instead of attempting > to reuse the existing

[PATCH v2] x86_64: Some SUBREG related optimization tweaks to i386 backend.

2021-10-13 Thread Roger Sayle
Good catch. I agree with Hongtao that although my testing revealed no problems with the previous version of this patch, it makes sense to call gen_reg_rtx to generate an pseudo intermediate instead of attempting to reuse the existing logic that uses ix86_gen_scratch_sse_rtx as an intermediate. I