[llvm] [GlobalMerge] Add MinSize feature to the GlobalMerge Pass. (PR #93686)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Wed May 29 07:50:21 PDT 2024


preames 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.)

I'm wondering about banning all small clustering as a bunch of the cases I see where GM would seem most useful are pairs of small globals.  :)

https://github.com/llvm/llvm-project/pull/93686


More information about the llvm-commits mailing list