[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:26:37 PDT 2025


================
@@ -1311,6 +1320,11 @@ bool LoopInterchangeProfitability::isProfitable(
       shouldInterchange =
           isProfitableForVectorization(InnerLoopId, OuterLoopId, DepMatrix);
       break;
+    case RuleTy::Ignore:
+      // TODO? We ignore the force option when it appears in a list, i.e. it
+      // should occur as the only option to be effective, as mentioned in the
+      // help.
----------------
kasuga-fj wrote:

```suggestion
      shouldInterchange = true;
```

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


More information about the llvm-commits mailing list