diff options
author | Kazu Hirata <kazu@google.com> | 2024-06-19 05:59:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-19 05:59:41 -0700 |
commit | 0d524bc45ddaa2bd94c28c8935e53153827f2374 (patch) | |
tree | 9822eb5c46d9a4a081eeae5fe69c9f5527928d28 /llvm/tools | |
parent | 60984f5be90d3f0378d739792adbd4c5e3dcc0e2 (diff) | |
download | llvm-0d524bc45ddaa2bd94c28c8935e53153827f2374.zip llvm-0d524bc45ddaa2bd94c28c8935e53153827f2374.tar.gz llvm-0d524bc45ddaa2bd94c28c8935e53153827f2374.tar.bz2 |
[llvm-mca] Use llvm::erase_if (NFC) (#96029)
Diffstat (limited to 'llvm/tools')
-rw-r--r-- | llvm/tools/llvm-mca/CodeRegion.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/tools/llvm-mca/CodeRegion.h b/llvm/tools/llvm-mca/CodeRegion.h index 5a2e8ba..ef8804f 100644 --- a/llvm/tools/llvm-mca/CodeRegion.h +++ b/llvm/tools/llvm-mca/CodeRegion.h @@ -104,11 +104,9 @@ public: dropInstructions(const llvm::SmallPtrSetImpl<const llvm::MCInst *> &Insts) { if (Insts.empty()) return Instructions; - Instructions.erase(std::remove_if(Instructions.begin(), Instructions.end(), - [&Insts](const llvm::MCInst &Inst) { - return Insts.contains(&Inst); - }), - Instructions.end()); + llvm::erase_if(Instructions, [&Insts](const llvm::MCInst &Inst) { + return Insts.contains(&Inst); + }); return Instructions; } |