[polly] r308491 - [ScopInfo] Do not create entries in map if non exists
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 19 09:31:10 PDT 2017
Author: grosser
Date: Wed Jul 19 09:31:10 2017
New Revision: 308491
URL: http://llvm.org/viewvc/llvm-project?rev=308491&view=rev
Log:
[ScopInfo] Do not create entries in map if non exists
Suggested-by: Michael Kruse <llvm at meinersbur.de>
Modified:
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=308491&r1=308490&r2=308491&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Wed Jul 19 09:31:10 2017
@@ -3746,7 +3746,7 @@ void Scop::removeStmts(std::function<boo
void Scop::removeStmtNotInDomainMap() {
auto ShouldDelete = [this](ScopStmt &Stmt) -> bool {
- return !this->DomainMap[Stmt.getEntryBlock()];
+ return !this->DomainMap.lookup(Stmt.getEntryBlock());
};
removeStmts(ShouldDelete);
}
More information about the llvm-commits
mailing list