public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Performing inter-procedural dataflow analysis
@ 2021-02-18  3:09 Shuai Wang
  2021-02-18  3:12 ` Shuai Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Shuai Wang @ 2021-02-18  3:09 UTC (permalink / raw)
  To: GCC Development

Hello,

I am doing interprocedural dataflow analysis and countered the following
issue. Suppose I have an GIMPLE IR code as follows, which is after the
"simdclone" pass while before my own SIMPLE IPA pass:


foo (int a, int b)
{
  int c;
  int d;
  int D.2425;
  int _5;

  <bb 2> :
*  c_4 = a_2(D) + b_3(D);  *
*  _5 = c_4;*
  ....

As you can see, while propagating certain dataflow facts among local
variables are smooth (e.g., from c_4 --> c_4 --> _5), I can hardly somehow
"link" function parameter "a" (or "b") with its first local usage "a_2(D)"
or "b_3(D)".

So my question is, when traversing the GIMPLE statements and encounter SSA
variables like "a_2(D)" or "b_3(D)", how do I know they originate from
parameter "a" and "b"?

Thank you!

Best,
Shuai

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-18 10:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-18  3:09 Performing inter-procedural dataflow analysis Shuai Wang
2021-02-18  3:12 ` Shuai Wang
2021-02-18  5:15 ` Prathamesh Kulkarni
2021-02-18 10:27 ` Martin Jambor

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).