[llvm] [LoopInterchange] Ignore the cost-model, force interchange if legal (PR #148858)
Sjoerd Meijer via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 18 01:52:38 PDT 2025
================
@@ -1311,6 +1320,11 @@ bool LoopInterchangeProfitability::isProfitable(
shouldInterchange =
isProfitableForVectorization(InnerLoopId, OuterLoopId, DepMatrix);
break;
+ case RuleTy::Ignore:
+ LLVM_DEBUG(dbgs() << "Interchange profitability: option 'ignore' has no "
+ "effect in combination with other options\n";
+ dbgs() << "To force interchange, only use 'ignore'");
----------------
sjoerdmeijer wrote:
Done, I have added the check to see if ignore appears in a list to function noDuplicatesAndIgnore. I think this is fine now.
https://github.com/llvm/llvm-project/pull/148858
More information about the llvm-commits
mailing list