[llvm] [LoopInterchange] Improve profitability check for vectorization (PR #133672)
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 14 07:57:40 PDT 2025
================
@@ -119,7 +119,11 @@ static bool noDuplicateRules(ArrayRef<RuleTy> Rules) {
static void printDepMatrix(CharMatrix &DepMatrix) {
for (auto &Row : DepMatrix) {
- for (auto D : Row)
+ ArrayRef<char> RowRef(Row);
+
+ // Drop the last element because it is a flag indicating whether the row is
+ // "lexically forward", which doesn't affect the legality check.
----------------
Meinersbur wrote:
Can you add a comment somehwere, e.g. the typedef of `DepMatrix` that the last element is forward/backward dependency?
https://github.com/llvm/llvm-project/pull/133672
More information about the llvm-commits
mailing list