[llvm] improve debug messages in delinearization and dependence analysis (NFC) (PR #156339)
Ryotaro Kasuga via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 3 02:14:44 PDT 2025
================
@@ -683,22 +676,33 @@ bool llvm::getIndexExpressionsFromGEP(ScalarEvolution &SE,
continue;
}
Subscripts.push_back(Expr);
+ LLVM_DEBUG(dbgs() << "Subscripts push_back: " << *Expr << "\n");
continue;
}
auto *ArrayTy = dyn_cast<ArrayType>(Ty);
if (!ArrayTy) {
+ LLVM_DEBUG(dbgs() << "GEP delinearize failed: " << *Ty
+ << " is not an array type.\n");
Subscripts.clear();
Sizes.clear();
return false;
}
Subscripts.push_back(Expr);
+ LLVM_DEBUG(dbgs() << "Subscripts push_back: " << *Expr << "\n");
----------------
kasuga-fj wrote:
Same here
https://github.com/llvm/llvm-project/pull/156339
More information about the llvm-commits
mailing list