This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Need advice on bounds checking approaches
- To: law at cygnus dot com
- Subject: Re: Need advice on bounds checking approaches
- From: Greg McGary <gkm at eng dot ascend dot com>
- Date: 24 Mar 2000 17:49:41 -0700
- Cc: Joern Rennecke <amylaar at cygnus dot co dot uk>, gcc at gcc dot gnu dot org
- References: <22486.953942953@upchuck>
Jeffrey A Law <law@cygnus.com> writes:
> We have kicked around the idea of two levels of RTL where we do some
> optimizations on the higher level RTL, then drop down to a lower level
> RTL.
Perhaps I could do that in a limited way, by adding a BP-specific
optimization pass after loop optimization that eliminates redundant
checks and expands "check_bounds" into primitive RTL for targets that
don't HAVE_check_bounds. Could that pass muster?
> Maybe it would make sense to do your optimizations at the tree level? We're
> working on functions-as-trees for the C front-end. Just a thought.
It's a fine thought, but I can't do that today, can I? I only see
whole function mode being used for C++ inlines.
Greg