Martin Liška <mli...@suse.cz> writes: > > Notes and limitations: > - The call-chain-clustering algorithm requires to fit as many as possible > functions into page size (4K). > Based on my measurements that should correspond to ~1000 GIMPLE statements > (IPA inliner size). I can > make it a param in the future.
That sounds inaccurate. I would assume e.g. integer code has a quite different factor than floating point code. Perhaps it would need something fancier. If you use a static factor you probably would need to calibrate it over a lot more code. Anyways, I think it should be a param, or better even an option, because there's a trend towards using 2MB code pages on x86. Linux has a number of ways to do that today. Also of course that's needed for other architectures. -Andi