Re: CFG transformation of loops with continue statement inside the loops.

2015-07-09 Thread Richard Biener
On Wed, Jul 8, 2015 at 4:46 PM, Ajit Kumar Agarwal wrote: > All: > > While/For ( condition1) > { >Some code here. > If(condition2 ) > continue; > Some code here. > } > > Fig(1) > > For the above loop in Fig(1) there will be two backedges and multiple > latches. The below code can be

CFG transformation of loops with continue statement inside the loops.

2015-07-08 Thread Ajit Kumar Agarwal
All: While/For ( condition1) { Some code here. If(condition2 ) continue; Some code here. } Fig(1) For the above loop in Fig(1) there will be two backedges and multiple latches. The below code can be transformed to the below in order to have a single backedge. While/For (condition