This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question about dead_or_predicable
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: Steven Bosscher <stevenb dot gcc at gmail dot com>
- Cc: Richard Henderson <rth at redhat dot com>, GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Wed, 24 Jun 2009 00:49:55 +0100
- Subject: Re: Question about dead_or_predicable
- References: <571f6b510906231527h453fe581i5cf85b785b587b86@mail.gmail.com>
Steven Bosscher wrote:
> The comment doesn't explain *why* we don't want delete_insn to be
> called, or why we want to do our own change group management.
dead_or_predicable is called from find_if_case_[12] which is called from
find_if_header which is called from if_convert within a FOR_EACH_BB loop; is
this perhaps another example of "don't mess with something while you're
iterating over it or your iterator might break"?
cheers,
DaveK