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

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 19 09:31:05 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),
----------------
MaskRay wrote:

This is a cdsort option, different from ext-tsp. Perhaps place this after all the other `ext-tsp` options?

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


More information about the llvm-commits mailing list