[PATCH, rs6000 V2] Add additional checks when identifying load/store instructions

Segher Boessenkool segher@kernel.crashing.org
Fri Aug 6 21:58:33 GMT 2021


On Fri, Aug 06, 2021 at 02:07:10PM -0500, Pat Haugen wrote:
> Add additional checks to verify destination[source] of a load[store]
> instruction is a register.

> --- a/gcc/config/rs6000/rs6000.c
> +++ b/gcc/config/rs6000/rs6000.c
> @@ -18357,8 +18357,13 @@ is_load_insn1 (rtx pat, rtx *load_mem)
>    if (!pat || pat == NULL_RTX)
>      return false;
>  
> -  if (GET_CODE (pat) == SET)
> -    return find_mem_ref (SET_SRC (pat), load_mem);
> +  if (GET_CODE (pat)== SET)

(space before ==)

Okay for trunk with that.  Thanks!


Segher


More information about the Gcc-patches mailing list