Skip to content

Commit 19a427b

Browse files
committed
[LoopInterchange] Address nit
1 parent 9e9ce50 commit 19a427b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Scalar/LoopInterchange.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,10 +551,10 @@ struct LoopInterchange {
551551
//
552552
// For the old pass manager CacheCost would be null.
553553
DenseMap<const Loop *, unsigned> CostMap;
554-
if (CC)
554+
if (CC != nullptr) {
555555
for (const auto &[Idx, Cost] : enumerate(CC->getLoopCosts()))
556556
CostMap[Cost.first] = Idx;
557-
557+
}
558558
// We try to achieve the globally optimal memory access for the loopnest,
559559
// and do interchange based on a bubble-sort fasion. We start from
560560
// the innermost loop, move it outwards to the best possible position

0 commit comments

Comments
 (0)