[PATCH] D35691: [Polly] [ScopInfo] Avoid use of getStmtFor(BB). NFC.
Michael Kruse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 26 06:26:18 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL309110: [ScopInfo] Avoid use of getStmtFor(BB). NFC. (authored by Meinersbur).
Changed prior to commit:
https://reviews.llvm.org/D35691?vs=108224&id=108265#toc
Repository:
rL LLVM
https://reviews.llvm.org/D35691
Files:
polly/trunk/lib/Analysis/ScopInfo.cpp
Index: polly/trunk/lib/Analysis/ScopInfo.cpp
===================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp
+++ polly/trunk/lib/Analysis/ScopInfo.cpp
@@ -2263,10 +2263,11 @@
SmallVector<isl_set *, 2> ConditionSets;
auto *TI = InScop ? CI->getParent()->getTerminator() : nullptr;
- auto &Stmt = InScop ? *getStmtFor(CI->getParent()) : *Stmts.begin();
- auto *Dom = InScop ? getDomainConditions(&Stmt) : isl_set_copy(Context);
- bool Valid = buildConditionSets(*this, Stmt.getEntryBlock(), Val, TI, L,
- Dom, InvalidDomainMap, ConditionSets);
+ BasicBlock *BB = InScop ? CI->getParent() : getRegion().getEntry();
+ auto *Dom = InScop ? DomainMap[BB].copy() : isl_set_copy(Context);
+ assert(Dom && "Cannot propagate a nullptr.");
+ bool Valid = buildConditionSets(*this, BB, Val, TI, L, Dom,
+ InvalidDomainMap, ConditionSets);
isl_set_free(Dom);
if (!Valid)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35691.108265.patch
Type: text/x-patch
Size: 1019 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170726/6295523e/attachment.bin>
More information about the llvm-commits
mailing list