[polly] Use DenseMap::contains (NFC)
authorKazu Hirata <kazu@google.com>
Wed, 15 Mar 2023 06:09:18 +0000 (23:09 -0700)
committerKazu Hirata <kazu@google.com>
Wed, 15 Mar 2023 06:09:18 +0000 (23:09 -0700)
polly/lib/Exchange/JSONExporter.cpp

index 6eafa5b..74d4e6c 100644 (file)
@@ -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());