This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Loop Detection in IPA


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]