diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2025-05-10 00:21:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-10 00:21:44 +0200 |
commit | 83551626d0c4d48d3399850ac6dfb432df6176ad (patch) | |
tree | 187376383d79c613f44ea28e39902597fe75b358 /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp | |
parent | 1678f47a91af074d2ed7f3663019740a0590f20f (diff) | |
download | llvm-83551626d0c4d48d3399850ac6dfb432df6176ad.zip llvm-83551626d0c4d48d3399850ac6dfb432df6176ad.tar.gz llvm-83551626d0c4d48d3399850ac6dfb432df6176ad.tar.bz2 |
LoopRotationUtils: Use initializer list instead of repeated push_back (#139312)
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopRotationUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopRotationUtils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp b/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp index 73d0740..693b1f5 100644 --- a/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp +++ b/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp @@ -822,10 +822,10 @@ bool LoopRotate::rotateLoop(Loop *L, bool SimplifiedLatch) { if (DT) { // The OrigPreheader branches to the NewHeader and Exit now. Then, inform // the DT about the removed edge to the OrigHeader (that got removed). - SmallVector<DominatorTree::UpdateType, 3> Updates; - Updates.push_back({DominatorTree::Insert, OrigPreheader, Exit}); - Updates.push_back({DominatorTree::Insert, OrigPreheader, NewHeader}); - Updates.push_back({DominatorTree::Delete, OrigPreheader, OrigHeader}); + SmallVector<DominatorTree::UpdateType, 3> Updates = { + {DominatorTree::Insert, OrigPreheader, Exit}, + {DominatorTree::Insert, OrigPreheader, NewHeader}, + {DominatorTree::Delete, OrigPreheader, OrigHeader}}; if (MSSAU) { MSSAU->applyUpdates(Updates, *DT, /*UpdateDT=*/true); |