This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Loop Detection in IPA
- From: "Matt G." <tragek at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 6 Aug 2008 10:44:06 -0600
- Subject: 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.