This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: LTO : how to specify number of chunks with option -flto-partition=balanced
- From: Swati <swatirathi at cse dot iitb dot ac dot in>
- To: Richard Biener <richard dot guenther at gmail dot com>, gcc at gcc dot gnu dot org
- Cc: Pritam Gharat <pritamg at cse dot iitb dot ac dot in>
- Date: Fri, 31 May 2013 12:51:07 +0530
- Subject: Re: LTO : how to specify number of chunks with option -flto-partition=balanced
- References: <519F1342 dot 5040205 at cse dot iitb dot ac dot in> <CAFiYyc1_Rq8V7pDhFAxS1sSV8baV1DKMMU75nWd_f3na9vBZ8Q at mail dot gmail dot com>
For -flto-partition=balanced, if user does not specify the --param
lto-partitions and --param lto-min-partition,
will GCC partition the program?
If yes what is the criteria?
Where can we get more help on using the --param lto-partitions and
--param lto-min-partition?
We want to know how the partitions are formed using these options.
Cases
1. when we specify --param lto-partitions=3 -> no partitions are formed.
2. when we specify --param lto-partitions=3 --param lto-min-partition=5
-> 3 partitions are formed
3. when we specify --param lto-min-partition=5 -> 7 partitions are formed
We understand cases 2 and 3.
However in case 1 why no partitions are formed?
Is it that when lto-min-partition is not specified, partitions will not
be formed?
Regards,
Swati
On Friday 24 May 2013 02:06 PM, Richard Biener wrote:
On Fri, May 24, 2013 at 9:14 AM, Swati<swatirathi@cse.iitb.ac.in> wrote:
Hello,
-flto-partition=balanced is used to specify partitioning into equally sized
chunks.
Is there an option to specify size or number of chunks?
There are the --param lto-partitions and --param lto-min-partition params.
Richard.
Regards,
Swati