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] Fix PR middle-end/28690, indexed load/store performance + reload bug


>>>>> Ulrich Weigand writes:

Ulrich> Well, the problem itself is target-specific, because the predicate
Ulrich> gpc_register_operand that accepts only certain registers is target-
Ulrich> specific.

Ulrich> I guess one question is, why do you need that predicate in the first
Ulrich> place, and don't just use register_operand?  In particular, given the
Ulrich> issues discussed in this thread, the predicate doesn't appear to have
Ulrich> the intended effect anyway ...

	As stated in the GCC documentation of predicates:

"Operand predicates can allow operands that are not actually acceptable to
the hardware, as long as the constraints give reload the ability to fix
them up.  However, GCC will usually generate better code if the predicates
specify the requirements of the machine instructions as closely as
possible."


David


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