diff options
author | Kazu Hirata <kazu@google.com> | 2023-03-14 23:09:18 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-03-14 23:09:18 -0700 |
commit | 0aee67ad4e6e750351ecf608d7d056fc49cb9348 (patch) | |
tree | 1e765d118282c74c1025e9f190a230bc4fd5a54f | |
parent | 872a3bf366c32cff861b2bb0ad2eb2d3cd225139 (diff) | |
download | llvm-0aee67ad4e6e750351ecf608d7d056fc49cb9348.tar.gz |
[polly] Use DenseMap::contains (NFC)
-rw-r--r-- | polly/lib/Exchange/JSONExporter.cpp | 2 |
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()); |