This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question about dead_or_predicable
On Wed, Jun 24, 2009 at 1:49 AM, Dave
Korn<dave.korn.cygwin@googlemail.com> wrote:
> 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"?
I don't think so. I know the rest of ifcvt.c pretty well. The code
expects blocks to be merged, moved, etc. when it has identified an
if-block.
Ciao!
Steven