Hi, I'm working on a new gcc port for which I'm writing a loop reorganization as a part of the machine dependant pass. This reorg requires information regarding the number of iterations in each loop. I tried to rebuild current_loops and extract the info from there using different loop initialization passes but noticed that the loop iterations are calculated in several different passes. I am also hesitant in re-running these passes as I don't want to cause unwanted side effects. I was interested in learning if there is an accepted method for acquiring this information.
Regards and thanks in advance, Yoav Teboulle