Re: [12/32] Remove global call sets: cselib.c

2019-10-29 Thread Martin Liška
On 9/29/19 11:05 PM, Jeff Law wrote: > On 9/11/19 1:09 PM, Richard Sandiford wrote: >> cselib_invalidate_regno is a no-op if REG_VALUES (i) is null, >> so we can check that first. Then, if we know what mode the register >> currently has, we can check whether it's clobbered in that mode. >> >> Usin

Re: [12/32] Remove global call sets: cselib.c

2019-09-29 Thread Jeff Law
On 9/11/19 1:09 PM, Richard Sandiford wrote: > cselib_invalidate_regno is a no-op if REG_VALUES (i) is null, > so we can check that first. Then, if we know what mode the register > currently has, we can check whether it's clobbered in that mode. > > Using GET_MODE (values->elt->val_rtx) to get th

[12/32] Remove global call sets: cselib.c

2019-09-11 Thread Richard Sandiford
cselib_invalidate_regno is a no-op if REG_VALUES (i) is null, so we can check that first. Then, if we know what mode the register currently has, we can check whether it's clobbered in that mode. Using GET_MODE (values->elt->val_rtx) to get the mode of the last set is taken from cselib_reg_set_mod