Skip to content

Commit 242d0c7

Browse files
authored
SplitKit: Use initializer lists (#167449)
1 parent ba4babe commit 242d0c7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/lib/CodeGen/SplitKit.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,10 +1509,9 @@ void SplitEditor::forceRecomputeVNI(const VNInfo &ParentVNI) {
15091509
}
15101510

15111511
// Trace value through phis.
1512-
SmallPtrSet<const VNInfo *, 8> Visited; ///< whether VNI was/is in worklist.
1513-
SmallVector<const VNInfo *, 4> WorkList;
1514-
Visited.insert(&ParentVNI);
1515-
WorkList.push_back(&ParentVNI);
1512+
///< whether VNI was/is in worklist.
1513+
SmallPtrSet<const VNInfo *, 8> Visited = {&ParentVNI};
1514+
SmallVector<const VNInfo *, 4> WorkList = {&ParentVNI};
15161515

15171516
const LiveInterval &ParentLI = Edit->getParent();
15181517
const SlotIndexes &Indexes = *LIS.getSlotIndexes();

0 commit comments

Comments
 (0)