[llvm] [LoopInterchange] Ignore the cost-model, force interchange if legal (PR #148858)

Madhur Amilkanthwar via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 15 07:53:22 PDT 2025


================
@@ -66,6 +66,10 @@ static cl::opt<unsigned int> MaxMemInstrCount(
         "in the dependency matrix. Higher value may lead to more interchanges "
         "at the cost of compile-time"));
 
+static cl::opt<bool> ForceLoopInterchange(
+    "loop-interchange-force", cl::init(false), cl::Hidden,
+    cl::desc("Ignore the cost model, and force interchange if it is legal"));
+
----------------
madhur13490 wrote:

Would it be better if we call it `-loop-interchange-ignore-cost-model`? `-force` seems it covers wider scenarios.

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


More information about the llvm-commits mailing list