We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b58b464 commit 8e24c59Copy full SHA for 8e24c59
llvm/tools/llvm-mca/CodeRegion.h
@@ -104,11 +104,9 @@ class CodeRegion {
104
dropInstructions(const llvm::SmallPtrSetImpl<const llvm::MCInst *> &Insts) {
105
if (Insts.empty())
106
return Instructions;
107
- Instructions.erase(std::remove_if(Instructions.begin(), Instructions.end(),
108
- [&Insts](const llvm::MCInst &Inst) {
109
- return Insts.contains(&Inst);
110
- }),
111
- Instructions.end());
+ llvm::erase_if(Instructions, [&Insts](const llvm::MCInst &Inst) {
+ return Insts.contains(&Inst);
+ });
112
113
}
114
0 commit comments