[polly] Use DenseMap::contains (NFC)

This commit is contained in:
Kazu Hirata 2023-03-14 23:09:18 -07:00
parent 872a3bf366
commit 0aee67ad4e

View 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());