Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-12-25 08:43:06 +0300
committerKazu Hirata <kazu@google.com>2021-12-25 08:43:06 +0300
commit76f0f1cc5c52359da5dd6dffff0c444400a1bca1 (patch)
tree621c7eaa322e6f04d4a0683ea7929420a7917b54 /polly/lib/Support
parent62e48ed10f9d2328331378f7c070487e58346a7e (diff)
Use {DenseSet,SetVector,SmallPtrSet}::contains (NFC)
Diffstat (limited to 'polly/lib/Support')
-rw-r--r--polly/lib/Support/SCEVValidator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/Support/SCEVValidator.cpp b/polly/lib/Support/SCEVValidator.cpp
index 002674375df0..8f175596d711 100644
--- a/polly/lib/Support/SCEVValidator.cpp
+++ b/polly/lib/Support/SCEVValidator.cpp
@@ -472,7 +472,7 @@ public:
// are strictly not necessary by tracking the invariant load as a
// scalar.
LoadInst *LI = dyn_cast<LoadInst>(Inst);
- if (LI && ILS.count(LI) > 0)
+ if (LI && ILS.contains(LI))
return false;
}