Re: Help with getting started with adding IPA-related attribute

2017-05-05 Thread Daniel Santos
Thanks for the help, Martin! On 05/03/2017 03:42 AM, Martin Jambor wrote: Hi, On Sat, Apr 29, 2017 at 06:28:31AM -0500, Daniel Santos wrote: Brievity is not my forte, so let me start with the questions. Can somebody please point me to the pass and/or function where gcc 1.) decides rather or

Re: Help with getting started with adding IPA-related attribute

2017-05-03 Thread Martin Jambor
Hi, On Sat, Apr 29, 2017 at 06:28:31AM -0500, Daniel Santos wrote: > Brievity is not my forte, so let me start with the questions. Can somebody > please point me to the pass and/or function where gcc > > 1.) decides rather or not to inline a function, There are two inlining passes. Early-inlin

Re: Help with getting started with adding IPA-related attribute

2017-05-01 Thread Daniel Santos
1.) decides rather or not to inline a function, 2.) decides rather or not to make a .constprop version of a function, 3.) a good pass (when all constant propagation is done) to search for fn parameters and variables (marked with an attribute) that were not constproped away, and finally 4.) wha

Help with getting started with adding IPA-related attribute

2017-04-29 Thread Daniel Santos
Brievity is not my forte, so let me start with the questions. Can somebody please point me to the pass and/or function where gcc 1.) decides rather or not to inline a function, 2.) decides rather or not to make a .constprop version of a function, 3.) a good pass (when all constant propagation i