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

Ryotaro Kasuga via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 17 06:30:54 PDT 2025


================
@@ -106,7 +107,10 @@ static cl::list<RuleTy> Profitabilities(
                clEnumValN(RuleTy::PerInstrOrderCost, "instorder",
                           "Prioritize the IVs order of each instruction"),
                clEnumValN(RuleTy::ForVectorization, "vectorize",
-                          "Prioritize vectorization")));
+                          "Prioritize vectorization"),
+               clEnumValN(RuleTy::Ignore, "ignore",
+                          "Ignore profitability, force interchange (does not "
+                          "work with other options)")));
----------------
kasuga-fj wrote:

```suggestion
                          "Ignore profitability, force interchange")));
```

Or do you want to reject cases where `ignore` is specified with other options?

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


More information about the llvm-commits mailing list