Re: Performing inter-procedural dataflow analysis

2021-02-17 Thread Prathamesh Kulkarni via Gcc
On Thu, 18 Feb 2021 at 08:39, Shuai Wang via Gcc wrote: > > 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)

Copyright Assignment Form

2021-02-17 Thread Akshat Agarwal via Gcc
Hey, I would like to contribute some patches to the gccrs project (https://github.com/Rust-GCC/gccrs/) and I'd like to get a copyright assignment form as per the guidelines outlined at https://gcc.gnu.org/contribute.html. Do let me know if there are any more steps involved. Thanks, Akshat Agarwa

Re: Performing inter-procedural dataflow analysis

2021-02-17 Thread Shuai Wang via Gcc
By saying a_2(D) originated from parameter "a", what I mean is that I obtain the tree pointer of "a" given the tree pointer of a_2(D). Is that possible? I can somehow image to first get the string name of these variables and do a clumsy (?) comparison. But that seems not very handy... Thank you!

Performing inter-procedural dataflow analysis

2021-02-17 Thread Shuai Wang via Gcc
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; : * c_4 = a_2(D) + b_3(

Re: using undeclared function returning bool results in wrong return value

2021-02-17 Thread Jonathan Wakely via Gcc
On Wed, 17 Feb 2021, 21:12 Thanos Makatos via Gcc, wrote: > I run into a problem that I'm not sure whether it's a bug in my program > (most likely) or something wrong with GCC (highly unlikely, I know, hence > why I haven't sent this to gcc-bugs). This is the wrong list, please use gcc-help fo

Re: using undeclared function returning bool results in wrong return value

2021-02-17 Thread Martin Sebor via Gcc
On 2/17/21 2:05 PM, Thanos Makatos via Gcc wrote: I run into a problem that I'm not sure whether it's a bug in my program (most likely) or something wrong with GCC (highly unlikely, I know, hence why I haven't sent this to gcc-bugs). The problem is using a function that returns a bool, defined

using undeclared function returning bool results in wrong return value

2021-02-17 Thread Thanos Makatos via Gcc
I run into a problem that I'm not sure whether it's a bug in my program (most likely) or something wrong with GCC (highly unlikely, I know, hence why I haven't sent this to gcc-bugs). The problem is using a function that returns a bool, defined in another source file without a declaration, and t

Re: A working GIMPLE simple IPA case to run?

2021-02-17 Thread Martin Liška
On 2/17/21 5:21 AM, Shuai Wang via Gcc wrote: Could anyone shed some light on this? Thank you very much! Hello. I would recommend looking at any of the existing passes: $ git grep SIMPLE_IPA_PASS ... One reasonable example can be gcc/tree-profile.c. Cheers, Martin