[llvm] [CodeLayout] cache-directed sort: limit max chain size (PR #69039)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 19 06:47:39 PDT 2023


================
@@ -62,6 +62,12 @@ cl::opt<bool> ApplyExtTspWithoutProfile(
     "ext-tsp-apply-without-profile",
     cl::desc("Whether to apply ext-tsp placement for instances w/o profile"),
     cl::init(true), cl::Hidden);
+
+namespace codelayout {
+cl::opt<unsigned>
+    CDMaxChainSize("cdsort-max-chain-size", cl::Hidden, cl::init(128),
----------------
spupyrev wrote:

Does it make sense to keep and use the new option next to other cdsort options, e.g., `CacheEntries`, `CacheSize`? It would be also great to unify their namings

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


More information about the llvm-commits mailing list