summaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-03-14 23:09:18 -0700
committerKazu Hirata <kazu@google.com>2023-03-14 23:09:18 -0700
commit0aee67ad4e6e750351ecf608d7d056fc49cb9348 (patch)
tree1e765d118282c74c1025e9f190a230bc4fd5a54f /polly
parent872a3bf366c32cff861b2bb0ad2eb2d3cd225139 (diff)
downloadllvm-0aee67ad4e6e750351ecf608d7d056fc49cb9348.tar.gz
[polly] Use DenseMap::contains (NFC)
Diffstat (limited to 'polly')
-rw-r--r--polly/lib/Exchange/JSONExporter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/Exchange/JSONExporter.cpp b/polly/lib/Exchange/JSONExporter.cpp
index 6eafa5b10f0c..74d4e6c7993f 100644
--- a/polly/lib/Exchange/JSONExporter.cpp
+++ b/polly/lib/Exchange/JSONExporter.cpp
@@ -326,7 +326,7 @@ static bool importSchedule(Scop &S, const json::Object &JScop,
auto ScheduleMap = isl::union_map::empty(S.getIslCtx());
for (ScopStmt &Stmt : S) {
- if (NewSchedule.find(&Stmt) != NewSchedule.end())
+ if (NewSchedule.contains(&Stmt))
ScheduleMap = ScheduleMap.unite(NewSchedule[&Stmt]);
else
ScheduleMap = ScheduleMap.unite(Stmt.getSchedule());