[llvm] [GlobalMerge] Add MinSize feature to the GlobalMerge Pass. (PR #93686)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed May 29 08:11:35 PDT 2024
topperc wrote:
> > The intent here is for global merge to not prevent small variables from being placed in sdata or sbss.
>
> GlobalMerge already clusters globals into a couple of sets, would introduce a "small" vs "large" set solve the same problem? (From a theoretical perspective. Not asking for a change in implementation at this time.)
You'd need many sets. You don't want any "small" cluster to exceed to small data limit if you want it to be eligible for GP relaxation.
https://github.com/llvm/llvm-project/pull/93686
More information about the llvm-commits
mailing list