Inefficient uses of JUMP_P

Richard Henderson rth@redhat.com
Tue Nov 30 06:48:00 GMT 2004


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~



More information about the Gcc mailing list