[llvm] [LoopInterchange] Modernize loops (NFC) (PR #146105)
Ryotaro Kasuga via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 27 09:38:37 PDT 2025
================
@@ -551,12 +551,10 @@ struct LoopInterchange {
//
// For the old pass manager CacheCost would be null.
DenseMap<const Loop *, unsigned> CostMap;
- if (CC != nullptr) {
- const auto &LoopCosts = CC->getLoopCosts();
- for (unsigned i = 0; i < LoopCosts.size(); i++) {
- CostMap[LoopCosts[i].first] = i;
- }
- }
+ if (CC)
----------------
kasuga-fj wrote:
Is this change necessary?
https://github.com/llvm/llvm-project/pull/146105
More information about the llvm-commits
mailing list