Skip to content

Commit 3acc37a

Browse files
committed
LoopRotationUtils: Use initializer list instead of repeated push_back
1 parent fd8b84e commit 3acc37a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Transforms/Utils/LoopRotationUtils.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -822,10 +822,10 @@ bool LoopRotate::rotateLoop(Loop *L, bool SimplifiedLatch) {
822822
if (DT) {
823823
// The OrigPreheader branches to the NewHeader and Exit now. Then, inform
824824
// the DT about the removed edge to the OrigHeader (that got removed).
825-
SmallVector<DominatorTree::UpdateType, 3> Updates;
826-
Updates.push_back({DominatorTree::Insert, OrigPreheader, Exit});
827-
Updates.push_back({DominatorTree::Insert, OrigPreheader, NewHeader});
828-
Updates.push_back({DominatorTree::Delete, OrigPreheader, OrigHeader});
825+
SmallVector<DominatorTree::UpdateType, 3> Updates = {
826+
{DominatorTree::Insert, OrigPreheader, Exit},
827+
{DominatorTree::Insert, OrigPreheader, NewHeader},
828+
{DominatorTree::Delete, OrigPreheader, OrigHeader}};
829829

830830
if (MSSAU) {
831831
MSSAU->applyUpdates(Updates, *DT, /*UpdateDT=*/true);

0 commit comments

Comments
 (0)