public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Abdul Wahid Memon <engrwahidmemon@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: loops problem
Date: Wed, 18 May 2011 15:48:00 -0000	[thread overview]
Message-ID: <BANLkTinpu8n4GKAhJBwW0v_g0HUj9QAXTQ@mail.gmail.com> (raw)

Hello everyone

I am facing some problem at obtaining the number of loops in the source program.
I am trying to use a function number_of_loops defined in cfgloop.h
with the help of plugin.

I have tried to capture this at both GIMPLE level after copy headers
pass where I always get the value of 0,
because the condition  if (!current_loops)    return 0; is (I think)
always becoming true and the same thing happens
at RTL after 'loop2_init' pass but I get the value of 1 even in the
presence or in the absence of any loop.

This is the first time I am playing with GCC plugins. Please help me
out with this issue.

PS: The passes after which I am puting my passes are definitely
producing the information about the loops as
can be seen from the dumps produced by copy headers pass and loop
initialization.

Regards

Abdul

             reply	other threads:[~2011-05-18 15:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-18 15:48 Abdul Wahid Memon [this message]
2011-05-19  0:39 ` Ian Lance Taylor
2011-05-19 15:58   ` Abdul Wahid Memon
2011-05-19 17:16     ` Ian Lance Taylor
2011-05-19 17:27       ` Abdul Wahid Memon
2011-05-19 17:29         ` Abdul Wahid Memon
2011-05-19 18:03         ` Ian Lance Taylor
2011-05-19 19:27           ` Abdul Wahid Memon
2011-05-20  0:15             ` Abdul Wahid Memon
2011-05-20 18:46               ` Jonathan Wakely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTinpu8n4GKAhJBwW0v_g0HUj9QAXTQ@mail.gmail.com \
    --to=engrwahidmemon@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).