[llvm] [LoopInterchange] Modernize loops (NFC) (PR #146105)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 27 09:43:35 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)
----------------
artagnon wrote:
When making non-functional changes, I try to improve surrounding code. The change is non-functional anyway, and an improvement.
https://github.com/llvm/llvm-project/pull/146105
More information about the llvm-commits
mailing list