Re: [PATCH] [PATCH] PR rtl-optimization/96791 Check precision of partial modes

2020-11-02 Thread Aaron Sawdey via Gcc-patches
Ping. So, this has sat for a while and it’s getting close to the end of stage1 now. I don’t see that we're any closer to a solution that allows us to use POImode without risking this ICE. I had to disable the use of VSX vector pair loads/stores in inline expansion of memcpy/memmove do avoid it.

Re: [PATCH] [PATCH] PR rtl-optimization/96791 Check precision of partial modes

2020-09-14 Thread Segher Boessenkool
On Mon, Sep 14, 2020 at 09:46:11AM +0200, Richard Biener wrote: > On Fri, Sep 11, 2020 at 4:18 PM Segher Boessenkool > wrote: > > Until 2014 (and documented just days ago ;-) ) all bits of a partial > > integer mode were considered unknown. > > All bits or all bits outside of its precision? I ho

Re: [PATCH] [PATCH] PR rtl-optimization/96791 Check precision of partial modes

2020-09-14 Thread Richard Biener via Gcc-patches
On Fri, Sep 11, 2020 at 4:18 PM Segher Boessenkool wrote: > > On Fri, Sep 11, 2020 at 08:07:39AM +0200, Richard Biener wrote: > > On Thu, Sep 10, 2020 at 5:12 PM Segher Boessenkool > > wrote: > > > On Thu, Sep 10, 2020 at 04:33:30PM +0200, Richard Biener wrote: > > > > On Thu, Sep 10, 2020 at 4:2

Re: [PATCH] [PATCH] PR rtl-optimization/96791 Check precision of partial modes

2020-09-11 Thread Segher Boessenkool
On Fri, Sep 11, 2020 at 08:07:39AM +0200, Richard Biener wrote: > On Thu, Sep 10, 2020 at 5:12 PM Segher Boessenkool > wrote: > > On Thu, Sep 10, 2020 at 04:33:30PM +0200, Richard Biener wrote: > > > On Thu, Sep 10, 2020 at 4:22 PM Aaron Sawdey > > > wrote: > > > > If it feels like a hack, that

Re: [PATCH] [PATCH] PR rtl-optimization/96791 Check precision of partial modes

2020-09-10 Thread Richard Biener via Gcc-patches
On Thu, Sep 10, 2020 at 5:12 PM Segher Boessenkool wrote: > > Hi! > > On Thu, Sep 10, 2020 at 04:33:30PM +0200, Richard Biener wrote: > > On Thu, Sep 10, 2020 at 4:22 PM Aaron Sawdey wrote: > > > If it feels like a hack, that would because it is a hack. > > > > > > What I’d really like to discuss

Re: [PATCH] [PATCH] PR rtl-optimization/96791 Check precision of partial modes

2020-09-10 Thread Aaron Sawdey via Gcc-patches
So, would it be legitimate for extract_low_bits to query if the truncate pattern it will likely use is actually available? Aaron Sawdey, Ph.D. saw...@linux.ibm.com IBM Linux on POWER Toolchain > On Sep 10, 2020, at 10:10 AM, Segher Boessenkool > wrote: > > Hi! > > On Thu, Sep 10, 2020 at

Re: [PATCH] [PATCH] PR rtl-optimization/96791 Check precision of partial modes

2020-09-10 Thread Segher Boessenkool
Hi! On Thu, Sep 10, 2020 at 04:33:30PM +0200, Richard Biener wrote: > On Thu, Sep 10, 2020 at 4:22 PM Aaron Sawdey wrote: > > If it feels like a hack, that would because it is a hack. > > > > What I’d really like to discuss is how to accomplish the real goal: keep > > anything from trying to do

Re: [PATCH] [PATCH] PR rtl-optimization/96791 Check precision of partial modes

2020-09-10 Thread Richard Biener via Gcc-patches
On Thu, Sep 10, 2020 at 4:22 PM Aaron Sawdey wrote: > > If it feels like a hack, that would because it is a hack. > > What I’d really like to discuss is how to accomplish the real goal: keep > anything from trying to do other operations (zero/sign extend for one) to > POImode. > > Is there an ex

Re: [PATCH] [PATCH] PR rtl-optimization/96791 Check precision of partial modes

2020-09-10 Thread Aaron Sawdey via Gcc-patches
If it feels like a hack, that would because it is a hack. What I’d really like to discuss is how to accomplish the real goal: keep anything from trying to do other operations (zero/sign extend for one) to POImode. Is there an existing mechanism for this? Thanks, Aaron Aaron Sawdey, Ph.D.

Re: [PATCH] [PATCH] PR rtl-optimization/96791 Check precision of partial modes

2020-09-10 Thread Richard Biener via Gcc-patches
On Wed, Sep 9, 2020 at 8:28 PM Aaron Sawdey via Gcc-patches wrote: > > Now that the documentation for partial modes says they have a known > number of bits of precision, would it make sense for extract_low_bits to > check this before attempting to extract the bits? > > This would solve the problem

Re: [PATCH] [PATCH] PR rtl-optimization/96791 Check precision of partial modes

2020-09-10 Thread Richard Sandiford
Aaron Sawdey writes: > Now that the documentation for partial modes says they have a known > number of bits of precision, would it make sense for extract_low_bits to > check this before attempting to extract the bits? > > This would solve the problem we have been having with POImode and > extract_

[PATCH] [PATCH] PR rtl-optimization/96791 Check precision of partial modes

2020-09-09 Thread Aaron Sawdey via Gcc-patches
Now that the documentation for partial modes says they have a known number of bits of precision, would it make sense for extract_low_bits to check this before attempting to extract the bits? This would solve the problem we have been having with POImode and extract_low_bits -- DSE tries to use it t