Need advice on bounds checking approaches
Jeffrey A Law
law@cygnus.com
Tue Mar 28 07:05:00 GMT 2000
In message < ms3dpbr5kg.fsf@gkm-dsl-194.ascend.com >you write:
> optimize away redundant conditional traps. An advantage to emitting
> separate conditional traps for low and high bounds checks is that the
> separate lower-bound check can be more easily be moved out of a loop
> for monotonically increasing pointer livs.
I hadn't thought of that. It assumes you can't overflow, but that's
probably a reasonable simplification for pointer operations.
Is there any advantage to not always emitting the high/low bounds checks
separately?
jeff
More information about the Gcc
mailing list