diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2025-11-10 20:48:30 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-11 04:48:30 +0000 |
| commit | 242d0c770ca31c8e8579239a09881fb2d2ceec18 (patch) | |
| tree | 4daa41d86cc7cdd4224b9a850e1584e155ca78b9 | |
| parent | ba4babee6bab4ed049d1744b2eb951097e381a96 (diff) | |
| download | llvm-242d0c770ca31c8e8579239a09881fb2d2ceec18.zip llvm-242d0c770ca31c8e8579239a09881fb2d2ceec18.tar.gz llvm-242d0c770ca31c8e8579239a09881fb2d2ceec18.tar.bz2 | |
SplitKit: Use initializer lists (#167449)
| -rw-r--r-- | llvm/lib/CodeGen/SplitKit.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp index f9ecb2c..8ec4bfb 100644 --- a/llvm/lib/CodeGen/SplitKit.cpp +++ b/llvm/lib/CodeGen/SplitKit.cpp @@ -1509,10 +1509,9 @@ void SplitEditor::forceRecomputeVNI(const VNInfo &ParentVNI) { } // Trace value through phis. - SmallPtrSet<const VNInfo *, 8> Visited; ///< whether VNI was/is in worklist. - SmallVector<const VNInfo *, 4> WorkList; - Visited.insert(&ParentVNI); - WorkList.push_back(&ParentVNI); + ///< whether VNI was/is in worklist. + SmallPtrSet<const VNInfo *, 8> Visited = {&ParentVNI}; + SmallVector<const VNInfo *, 4> WorkList = {&ParentVNI}; const LiveInterval &ParentLI = Edit->getParent(); const SlotIndexes &Indexes = *LIS.getSlotIndexes(); |
