summaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-03-15 22:55:35 -0700
committerKazu Hirata <kazu@google.com>2023-03-15 22:55:35 -0700
commit4e585e51c167f458c3a9072298c3d4e32a7fce31 (patch)
tree56cfe020f8c4d17355bd27c6018e72040ab9c40f /polly
parent6c756486d44914bac6fb20513b8c41f1a5726c4c (diff)
downloadllvm-4e585e51c167f458c3a9072298c3d4e32a7fce31.tar.gz
Use *{Map,Set}::contains (NFC)
Diffstat (limited to 'polly')
-rw-r--r--polly/lib/CodeGen/IslNodeBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/IslNodeBuilder.cpp b/polly/lib/CodeGen/IslNodeBuilder.cpp
index dbcf969c1b2b..c91dd7665757 100644
--- a/polly/lib/CodeGen/IslNodeBuilder.cpp
+++ b/polly/lib/CodeGen/IslNodeBuilder.cpp
@@ -850,7 +850,7 @@ void IslNodeBuilder::generateCopyStmt(
}
Value *IslNodeBuilder::materializeNonScopLoopInductionVariable(const Loop *L) {
- assert(OutsideLoopIterations.find(L) == OutsideLoopIterations.end() &&
+ assert(!OutsideLoopIterations.contains(L) &&
"trying to materialize loop induction variable twice");
const SCEV *OuterLIV = SE.getAddRecExpr(SE.getUnknown(Builder.getInt64(0)),
SE.getUnknown(Builder.getInt64(1)), L,