Re: [RFC][PATCH] A change to do_while_loop_p()

2012-03-22 Thread Richard Guenther
On Wed, 21 Mar 2012, Razya Ladelsky wrote: > Hi, > > I need to use do_while_loop_p, but I'm not sure its functionality is what > I expected it to be. > > This is the part that I do not understand: > > /* If the header contains just a condition, it is not a do-while loop. */ > stmt = last_an

[RFC][PATCH] A change to do_while_loop_p()

2012-03-21 Thread Razya Ladelsky
Hi, I need to use do_while_loop_p, but I'm not sure its functionality is what I expected it to be. This is the part that I do not understand: /* If the header contains just a condition, it is not a do-while loop. */ stmt = last_and_only_stmt (loop->header); if (stmt && gimple_code (st