projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
872a3bf
)
[polly] Use DenseMap::contains (NFC)
author
Kazu Hirata
<kazu@google.com>
Wed, 15 Mar 2023 06:09:18 +0000
(23:09 -0700)
committer
Kazu Hirata
<kazu@google.com>
Wed, 15 Mar 2023 06:09:18 +0000
(23:09 -0700)
polly/lib/Exchange/JSONExporter.cpp
patch
|
blob
|
history
diff --git
a/polly/lib/Exchange/JSONExporter.cpp
b/polly/lib/Exchange/JSONExporter.cpp
index
6eafa5b
..
74d4e6c
100644
(file)
--- 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());