summaryrefslogtreecommitdiffstats
path: root/polly/lib/Analysis
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2017-07-19 16:31:10 +0000
committerTobias Grosser <tobias@grosser.es>2017-07-19 16:31:10 +0000
commit199ec4af409748a5ced32f6a9184aa7cc8a7183f (patch)
tree1c139e65f3e6bbc4ab35b41027444d02183176af /polly/lib/Analysis
parent2b536542e480caec29f7feca22c41cfa08f19aaa (diff)
downloadbcm5719-llvm-199ec4af409748a5ced32f6a9184aa7cc8a7183f.tar.gz
bcm5719-llvm-199ec4af409748a5ced32f6a9184aa7cc8a7183f.zip
[ScopInfo] Do not create entries in map if non exists
Suggested-by: Michael Kruse <llvm@meinersbur.de> llvm-svn: 308491
Diffstat (limited to 'polly/lib/Analysis')
-rw-r--r--polly/lib/Analysis/ScopInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp
index d0247e8055d..a782930f16a 100644
--- a/polly/lib/Analysis/ScopInfo.cpp
+++ b/polly/lib/Analysis/ScopInfo.cpp
@@ -3746,7 +3746,7 @@ void Scop::removeStmts(std::function<bool(ScopStmt &)> ShouldDelete) {
void Scop::removeStmtNotInDomainMap() {
auto ShouldDelete = [this](ScopStmt &Stmt) -> bool {
- return !this->DomainMap[Stmt.getEntryBlock()];
+ return !this->DomainMap.lookup(Stmt.getEntryBlock());
};
removeStmts(ShouldDelete);
}
OpenPOWER on IntegriCloud