Re: a question regarding ifcvt.c

2007-05-21 Thread Steven Bosscher
On 5/21/07, Tehila Meyzels <[EMAIL PROTECTED]> wrote: Hi, I'd like to get an explanation why ifcvt.c checks whether 1 of the 2 successors of the IF-header block has a stmt that exits from the loop? Why does it prevent the if-conversion? I'm referring to the following code: /* Nor exit the loop

Re: a question regarding ifcvt.c

2007-05-21 Thread Ian Lance Taylor
Tehila Meyzels <[EMAIL PROTECTED]> writes: > I'd like to get an explanation why ifcvt.c checks whether 1 of the 2 > successors of the IF-header block has a stmt that exits from the loop? > Why does it prevent the if-conversion? > I'm referring to the following code: > > /* Nor exit the loop. */

a question regarding ifcvt.c

2007-05-21 Thread Tehila Meyzels
Hi, I'd like to get an explanation why ifcvt.c checks whether 1 of the 2 successors of the IF-header block has a stmt that exits from the loop? Why does it prevent the if-conversion? I'm referring to the following code: /* Nor exit the loop. */ if ((then_edge->flags & EDGE_LOOP_EXIT) ||