commit | e5c52bf951901f38347a11459de6d0fc07202226 | [log] [tgz] |
---|---|---|
author | Kazu Hirata <kazu@google.com> | Wed Jul 20 09:09:19 2022 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Jul 20 09:16:15 2022 -0700 |
tree | 010ff641342a9dd69c13768b17f6d4b7a5435889 | |
parent | e1b6cb99e7c91f6c589af9571e5842fd68f4c4db [diff] |
Use llvm::is_contained (NFC) GitOrigin-RevId: 360c1111e358c4c7e8591953ce9548d60c9410a6
diff --git a/include/polly/ScopInfo.h b/include/polly/ScopInfo.h index 404edc8..b89d1be 100644 --- a/include/polly/ScopInfo.h +++ b/include/polly/ScopInfo.h
@@ -1359,8 +1359,7 @@ if (!Inst) return false; if (isBlockStmt()) - return std::find(Instructions.begin(), Instructions.end(), Inst) != - Instructions.end(); + return llvm::is_contained(Instructions, Inst); return represents(Inst->getParent()); }