Apologies to those who follow GCC-help; I posted something very similar there yesterday without really thinking. I believe this better belongs here however.
I'm looking to get loop information in an IPA pass; However, as near as I can tell by the time the ipa-passes are called, the loop information is gone (ie x_current_loops is null). Is it possible to regenerate that information? As a hack, I believe I could manually set cfun to the function i'm working on at the time and call flow_loops_find(). However, I doubt this would be the proper way to do it. Is there a more reccomended way? Thanks in advance, and apologies again for the crosspost. -- Matt G.