aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-03-14 08:07:42 -0700
committerKazu Hirata <kazu@google.com>2023-03-14 08:07:42 -0700
commita585fa2637774232fd792047191f8358f462230f (patch)
tree7aa09ae23d6979e3ac49af4eee8a86806241ac52 /llvm/lib/CodeGen/CodeGenPrepare.cpp
parent070283825aaff778f7fb527ebc4ef74c84b6c889 (diff)
downloadllvm-a585fa2637774232fd792047191f8358f462230f.zip
llvm-a585fa2637774232fd792047191f8358f462230f.tar.gz
llvm-a585fa2637774232fd792047191f8358f462230f.tar.bz2
[CodeGen] Use *{Set,Map}::contains (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 79cd7060..2c83d70 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -3890,7 +3890,7 @@ private:
while (!Worklist.empty()) {
Value *Current = Worklist.pop_back_val();
// if it is already visited or it is an ending value then skip it.
- if (Map.find(Current) != Map.end())
+ if (Map.contains(Current))
continue;
TraverseOrder.push_back(Current);