Skip to content

Commit a81eb7b

Browse files
Update a comment.
1 parent ff8a93b commit a81eb7b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/CodeGen/InlineSpiller.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,8 +1545,9 @@ void HoistSpillHelper::runHoistSpills(
15451545
for (MachineDomTreeNode *Child : (*RIt)->children()) {
15461546
if (!SpillsInSubTreeMap.contains(Child))
15471547
continue;
1548-
// The stmt "auto &[...] = SpillsInSubTreeMap[*RIt]" below
1549-
// should be placed before getting the begin and end iterators of
1548+
// The stmt:
1549+
// "auto &[SpillsInSubTree, SubTreeCost] = SpillsInSubTreeMap[*RIt]"
1550+
// below should be placed before getting the begin and end iterators of
15501551
// SpillsInSubTreeMap[Child].first, or else the iterators may be
15511552
// invalidated when SpillsInSubTreeMap[*RIt] is seen the first time
15521553
// and the map grows and then the original buckets in the map are moved.

0 commit comments

Comments
 (0)