Re: [PATCH] Introduce VIRTUAL_REGISTER_P and VIRTUAL_REGISTER_NUM_P predicates

2023-04-19 Thread Jakub Jelinek via Gcc-patches
On Wed, Apr 19, 2023 at 08:53:42AM +0200, Uros Bizjak wrote: > On Tue, Apr 18, 2023 at 7:20 PM Jakub Jelinek wrote: > > > > On Mon, Apr 17, 2023 at 11:27:28PM +0200, Uros Bizjak via Gcc-patches wrote: > > > --- a/gcc/rtl.h > > > +++ b/gcc/rtl.h > > > @@ -1972,6 +1972,13 @@ set_regno_raw (rtx x,

Re: [PATCH] Introduce VIRTUAL_REGISTER_P and VIRTUAL_REGISTER_NUM_P predicates

2023-04-19 Thread Uros Bizjak via Gcc-patches
On Tue, Apr 18, 2023 at 7:20 PM Jakub Jelinek wrote: > > On Mon, Apr 17, 2023 at 11:27:28PM +0200, Uros Bizjak via Gcc-patches wrote: > > --- a/gcc/rtl.h > > +++ b/gcc/rtl.h > > @@ -1972,6 +1972,13 @@ set_regno_raw (rtx x, unsigned int regno, unsigned > > int nregs) > > /* 1 if the given

Re: [PATCH] Introduce VIRTUAL_REGISTER_P and VIRTUAL_REGISTER_NUM_P predicates

2023-04-18 Thread Jakub Jelinek via Gcc-patches
On Mon, Apr 17, 2023 at 11:27:28PM +0200, Uros Bizjak via Gcc-patches wrote: > --- a/gcc/rtl.h > +++ b/gcc/rtl.h > @@ -1972,6 +1972,13 @@ set_regno_raw (rtx x, unsigned int regno, unsigned int > nregs) > /* 1 if the given register number REG_NO corresponds to a hard register. */ > #define

Re: [PATCH] Introduce VIRTUAL_REGISTER_P and VIRTUAL_REGISTER_NUM_P predicates

2023-04-18 Thread Jeff Law via Gcc-patches
On 4/17/23 15:27, Uros Bizjak via Gcc-patches wrote: These two predicates are similar to existing HARD_REGISTER_P and HARD_REGISTER_NUM_P predicates and return 1 if the given register corresponds to a virtual register. gcc/ChangeLog: * rtl.h (VIRTUAL_REGISTER_P): New predicate.

[PATCH] Introduce VIRTUAL_REGISTER_P and VIRTUAL_REGISTER_NUM_P predicates

2023-04-17 Thread Uros Bizjak via Gcc-patches
These two predicates are similar to existing HARD_REGISTER_P and HARD_REGISTER_NUM_P predicates and return 1 if the given register corresponds to a virtual register. gcc/ChangeLog: * rtl.h (VIRTUAL_REGISTER_P): New predicate. (VIRTUAL_REGISTER_NUM_P): Ditto. (REGNO_PTR_FRAME_P): Use