From: Peng Zhao <blue_3too@hotmail.com>
To: gcc gcc <gcc@gcc.gnu.org>, <rguenther@suse.de>
Subject: questions about dependence analysis in CG
Date: Wed, 07 Mar 2012 18:42:00 -0000 [thread overview]
Message-ID: <BLU124-W241F7BA9CBBCA19D9EFDA8C9560@phx.gbl> (raw)
In-Reply-To: <BLU124-W1794E94E215516BE91DF9CC9560@phx.gbl>
Hello,
I am a little confused by the code in sched-deps.c.
1. what is the purpose of the reg_note and ds_t? I see the function dk_to_ds, and the comment in sched-int.h, "Dependence on instruction can be of multiple types
(e.g. true and output). This fields enhance REG_NOTE_KIND information of the dependence.". What is enhanced from REG_DEP_TRUE to DEP_TRUE?
in struct _dep, I only find the dependence that is related with REG_NOTE (or registers). Even ds_t only as DEP_TRUE/DEP_OUTPUT/DEP_ANTI. Does this mean that gcc doesn't differentiate reg dependence and memory dependence?
Where can I find information about memory dependences such as a write and read on elementa[100] ? Sometimes meory dependence should be handled differenly with reg dependece in CG, such as the latency between the producer and the consumer.
2. What different purpose are haifa_note_mem_dep and haifa_note_dep for?
thanks
next parent reply other threads:[~2012-03-07 18:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <BLU124-W1794E94E215516BE91DF9CC9560@phx.gbl>
2012-03-07 18:42 ` Peng Zhao [this message]
2012-03-08 6:21 ` Ian Lance Taylor
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=BLU124-W241F7BA9CBBCA19D9EFDA8C9560@phx.gbl \
--to=blue_3too@hotmail.com \
--cc=gcc@gcc.gnu.org \
--cc=rguenther@suse.de \
/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).