[llvm] [LoopInterchange] Ignore the cost-model, force interchange if legal (PR #148858)
Sjoerd Meijer via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 17 06:38:29 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)")));
----------------
sjoerdmeijer wrote:
Yes, exactly. That's why I wrote this comment:
// 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.
This is a complication of moving this to an existing option that accepts a list of options. We have to define the behaviour of "option-a, optionb, ..., ignore" and I think dropping and ignoring it is the best.
https://github.com/llvm/llvm-project/pull/148858
More information about the llvm-commits
mailing list