From 0aee67ad4e6e750351ecf608d7d056fc49cb9348 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 14 Mar 2023 23:09:18 -0700 Subject: [polly] Use DenseMap::contains (NFC) --- polly/lib/Exchange/JSONExporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'polly') 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()); -- cgit v1.2.1