This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: PR 19061 & 26345: Fix basereg_operand for IA64


> Index: config/ia64/predicates.md
> ===================================================================
> --- config/ia64/predicates.md	(revision 110852)
> +++ config/ia64/predicates.md	(working copy)
> @@ -586,8 +586,6 @@ (define_predicate "ar_pfs_reg_operand"
>  (define_predicate "basereg_operand"
>    (match_operand 0 "register_operand")
>  {
> -  if (GET_CODE (op) == SUBREG)
> -    op = SUBREG_REG (op);
> -  return REG_POINTER (op);
> +  return register_operand (op, mode) && REG_P (op) && REG_POINTER (op);
>  })

Testing register_operand in the body is redundant with the "prologue".

-- 
Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]