Re: [PATCH v2 1/3] rtl: properly handle subreg (mem) in gen_highpart [PR102125]

2021-09-09 Thread Richard Earnshaw via Gcc-patches
On 09/09/2021 13:23, Richard Biener via Gcc-patches wrote: On Thu, Sep 9, 2021 at 1:09 PM Richard Earnshaw wrote: gen_lowpart_general handles forming a SUBREG of a MEM by using adjust_address to rework and validate a new version of the MEM. However, gen_highpart does not attempt this and s

Re: [PATCH v2 1/3] rtl: properly handle subreg (mem) in gen_highpart [PR102125]

2021-09-09 Thread Richard Biener via Gcc-patches
On Thu, Sep 9, 2021 at 1:09 PM Richard Earnshaw wrote: > > > gen_lowpart_general handles forming a SUBREG of a MEM by using > adjust_address to rework and validate a new version of the MEM. > However, gen_highpart does not attempt this and simply returns (SUBREG > (MEM)) if the change is not 'obvi

[PATCH v2 1/3] rtl: properly handle subreg (mem) in gen_highpart [PR102125]

2021-09-09 Thread Richard Earnshaw via Gcc-patches
gen_lowpart_general handles forming a SUBREG of a MEM by using adjust_address to rework and validate a new version of the MEM. However, gen_highpart does not attempt this and simply returns (SUBREG (MEM)) if the change is not 'obviously' safe. Improve on that by using a similar approach so that g