Re: [PATCH] regrename: Use PC instead of CC0 to hide operands

2019-10-01 Thread Richard Sandiford
Paul Koning writes: > On Oct 1, 2019, at 5:14 AM, Segher Boessenkool > wrote: >> >> The regrename pass temporarily changes some operand RTL to CC0 so that >> note_stores and scan_rtx don't see those operands. CC0 is deprecated >> and we want to remove it, so we need to use something else here.

Re: [PATCH] regrename: Use PC instead of CC0 to hide operands

2019-10-01 Thread Paul Koning
On Oct 1, 2019, at 5:14 AM, Segher Boessenkool wrote: > > The regrename pass temporarily changes some operand RTL to CC0 so that > note_stores and scan_rtx don't see those operands. CC0 is deprecated > and we want to remove it, so we need to use something else here. > PC fits the bill fine. CC

Re: [PATCH] regrename: Use PC instead of CC0 to hide operands

2019-10-01 Thread Segher Boessenkool
On Tue, Oct 01, 2019 at 10:18:37AM +0100, Richard Sandiford wrote: > Segher Boessenkool writes: > It's mentioned by name later too: > > /* Step 2: Mark chains for which we have reads outside operands >as unrenamable. >We do this by munging all operands into CC0, an

Re: [PATCH] regrename: Use PC instead of CC0 to hide operands

2019-10-01 Thread Richard Sandiford
Segher Boessenkool writes: > The regrename pass temporarily changes some operand RTL to CC0 so that > note_stores and scan_rtx don't see those operands. CC0 is deprecated > and we want to remove it, so we need to use something else here. > PC fits the bill fine. > > Tested on powerpc64-linux {-m3

[PATCH] regrename: Use PC instead of CC0 to hide operands

2019-10-01 Thread Segher Boessenkool
The regrename pass temporarily changes some operand RTL to CC0 so that note_stores and scan_rtx don't see those operands. CC0 is deprecated and we want to remove it, so we need to use something else here. PC fits the bill fine. Tested on powerpc64-linux {-m32,-m64}. Is this okay for trunk? Seg