Re: [PATCH v2 11/36] tcg: Introduce TYPE_CONST temporaries

2020-04-22 Thread Richard Henderson
On 4/22/20 8:17 AM, Alex Bennée wrote: >> static inline bool temp_readonly(TCGTemp *ts) >> { >> -return ts->kind == TEMP_FIXED; >> +return ts->kind >= TEMP_FIXED; > > I should have clarified in the previous patch - TEMP_FIXED is a fixed > value, e.g. env or other internal pointer which

Re: [PATCH v2 11/36] tcg: Introduce TYPE_CONST temporaries

2020-04-22 Thread Alex Bennée
Richard Henderson writes: > These will hold a single constant for the duration of the TB. > They are hashed, so that each value has one temp across the TB. > > Not used yet, this is all infrastructure. > > Signed-off-by: Richard Henderson > --- > include/tcg/tcg.h | 27 ++- >

[PATCH v2 11/36] tcg: Introduce TYPE_CONST temporaries

2020-04-21 Thread Richard Henderson
These will hold a single constant for the duration of the TB. They are hashed, so that each value has one temp across the TB. Not used yet, this is all infrastructure. Signed-off-by: Richard Henderson --- include/tcg/tcg.h | 27 ++- tcg/optimize.c| 40 ++---