diff options
author | Kazu Hirata <kazu@google.com> | 2023-03-14 08:07:42 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-03-14 08:07:42 -0700 |
commit | a585fa2637774232fd792047191f8358f462230f (patch) | |
tree | 7aa09ae23d6979e3ac49af4eee8a86806241ac52 /llvm/lib/CodeGen/MachineBlockPlacement.cpp | |
parent | 070283825aaff778f7fb527ebc4ef74c84b6c889 (diff) | |
download | llvm-a585fa2637774232fd792047191f8358f462230f.zip llvm-a585fa2637774232fd792047191f8358f462230f.tar.gz llvm-a585fa2637774232fd792047191f8358f462230f.tar.bz2 |
[CodeGen] Use *{Set,Map}::contains (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBlockPlacement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp index ac4d59e..4f9f5de 100644 --- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp +++ b/llvm/lib/CodeGen/MachineBlockPlacement.cpp @@ -2017,7 +2017,7 @@ MachineBlockPlacement::FallThroughGains( for (MachineBasicBlock *Succ : BestPred->successors()) { if ((Succ == NewTop) || (Succ == BestPred) || !LoopBlockSet.count(Succ)) continue; - if (ComputedEdges.find(Succ) != ComputedEdges.end()) + if (ComputedEdges.contains(Succ)) continue; BlockChain *SuccChain = BlockToChain[Succ]; if ((SuccChain && (Succ != *SuccChain->begin())) || |