Adjust the GlobalMergeOnExternal option so that the default behaviour is to do whatever the Target thinks is best. Explicitly enabled or disabling the option will override this default.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
A couple nits, but this sounds reasonable. Obviously, please wait for D10966 to be approved.
lib/CodeGen/GlobalMerge.cpp | ||
---|---|---|
133 ↗ | (On Diff #29099) | "GlobalMerge" isn't a verb yet ;) How about "[Should]MergeExternalGlobals" or something similar? |
610–614 ↗ | (On Diff #29099) | How about: bool MergeExternal = MergeExternalByDefault if (EnableGlobalMergeOnExternal != cl::BOU_UNSET) MergeExternal = (EnableGlobalMergeOnExternal == cl::BOU_TRUE); (or the even terser ternary version). |