[llvm] 962e8d9 - [mips] Use `push_back` to insert element at the end of a container. NFC
Simon Atanasyan via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 11 08:08:45 PST 2022
Author: Simon Atanasyan
Date: 2022-01-11T19:08:19+03:00
New Revision: 962e8d9976c5cbc30ff65e675a6c4470a20803c7
URL: https://github.com/llvm/llvm-project/commit/962e8d9976c5cbc30ff65e675a6c4470a20803c7
DIFF: https://github.com/llvm/llvm-project/commit/962e8d9976c5cbc30ff65e675a6c4470a20803c7.diff
LOG: [mips] Use `push_back` to insert element at the end of a container. NFC
Added:
Modified:
llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp b/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp
index f807f47849f0c..cf6cec22308c4 100644
--- a/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp
+++ b/llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp
@@ -314,7 +314,7 @@ static void insertDelayFiller(Iter Filler, const BB2BrMap &BrMap) {
MIBundleBuilder(I.second).append(MF->CloneMachineInstr(&*Filler));
++UsefulSlots;
} else {
- I.first->insert(I.first->end(), MF->CloneMachineInstr(&*Filler));
+ I.first->push_back(MF->CloneMachineInstr(&*Filler));
}
}
}
More information about the llvm-commits
mailing list