We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e9ce50 commit 19a427bCopy full SHA for 19a427b
llvm/lib/Transforms/Scalar/LoopInterchange.cpp
@@ -551,10 +551,10 @@ struct LoopInterchange {
551
//
552
// For the old pass manager CacheCost would be null.
553
DenseMap<const Loop *, unsigned> CostMap;
554
- if (CC)
+ if (CC != nullptr) {
555
for (const auto &[Idx, Cost] : enumerate(CC->getLoopCosts()))
556
CostMap[Cost.first] = Idx;
557
-
+ }
558
// We try to achieve the globally optimal memory access for the loopnest,
559
// and do interchange based on a bubble-sort fasion. We start from
560
// the innermost loop, move it outwards to the best possible position
0 commit comments