[polly] 0aee67a - [polly] Use DenseMap::contains (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 14 23:09:31 PDT 2023


Author: Kazu Hirata
Date: 2023-03-14T23:09:18-07:00
New Revision: 0aee67ad4e6e750351ecf608d7d056fc49cb9348

URL: https://github.com/llvm/llvm-project/commit/0aee67ad4e6e750351ecf608d7d056fc49cb9348
DIFF: https://github.com/llvm/llvm-project/commit/0aee67ad4e6e750351ecf608d7d056fc49cb9348.diff

LOG: [polly] Use DenseMap::contains (NFC)

Added: 
    

Modified: 
    polly/lib/Exchange/JSONExporter.cpp

Removed: 
    


################################################################################
diff  --git a/polly/lib/Exchange/JSONExporter.cpp b/polly/lib/Exchange/JSONExporter.cpp
index 6eafa5b10f0c2..74d4e6c7993fa 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());


        


More information about the llvm-commits mailing list