Re: [PATCH] V12 patch #4 of 14, Optimize adjusting PC-relative vector addresses

2020-01-31 Thread Segher Boessenkool
Hi! On Thu, Jan 09, 2020 at 07:34:31PM -0500, Michael Meissner wrote: > +static rtx > +adjust_vec_address_pcrel (rtx addr, rtx element_offset, rtx base_tmp) > +{ > + rtx new_addr = NULL; You don't need this variable, you can just return the value directly in every case, and then you don't need a

[PATCH] V12 patch #4 of 14, Optimize adjusting PC-relative vector addresses

2020-01-09 Thread Michael Meissner
This patch folds a PC-relative vector address that is adjusted with a constant offset, to fold the constant into the PC-relative address. I moved this code to be a separate function to make it clearer what the steps were. With patch V12 #3, address_to_insn_form is now used to validate the address