Re: [PATCH 06/10] rtl: Validate subreg info when optimizing vec_select.

2024-11-07 Thread Richard Sandiford
Tejas Belagod writes: > When optimizing for NOPs in case of overlapping regs in VEC_SELECT > expressions, > validate subreg data before using simplify_subreg_regno. There is no real > SUBREG rtx here, but a pseudo subreg call to check if subregs are possible. > > gcc/ChangeLog: > > * rtlan

[PATCH 06/10] rtl: Validate subreg info when optimizing vec_select.

2024-11-06 Thread Tejas Belagod
When optimizing for NOPs in case of overlapping regs in VEC_SELECT expressions, validate subreg data before using simplify_subreg_regno. There is no real SUBREG rtx here, but a pseudo subreg call to check if subregs are possible. gcc/ChangeLog: * rtlanal.cc (set_noop_p): Validate subreg