This is the mail archive of the gcc@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: Inefficient uses of JUMP_P


On Mon, Nov 29, 2004 at 10:23:58PM -0500, Kazu Hirata wrote:
> I am thinking about making these checks the callers' responsibility so
> that we will only have to do a single JUMP_P check for each "if"
> statement containing several jump predicates.

I think that will result in more source code bloat and missed
checks than anything else.

I think the thing to take away from this is that if we're often
seeing two or more predicates used together, then we have 
incorrectly factored code.  Better would be a new predicate
that performs the composite operation.



r~


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