[PATCH] D35610: [Polly] Avoid use of `getStmtFor(BB)` in ScopBuilder. [NFC]

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 20 05:47:59 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL308610: [ScopBuilder] Avoid use of getStmtFor(BB). NFC. (authored by Meinersbur).

Changed prior to commit:
  https://reviews.llvm.org/D35610?vs=107458&id=107493#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D35610

Files:
  polly/trunk/lib/Analysis/ScopBuilder.cpp


Index: polly/trunk/lib/Analysis/ScopBuilder.cpp
===================================================================
--- polly/trunk/lib/Analysis/ScopBuilder.cpp
+++ polly/trunk/lib/Analysis/ScopBuilder.cpp
@@ -880,11 +880,11 @@
 /// happened yet, such that virtual and physical uses are equivalent.
 static void verifyUses(Scop *S, LoopInfo &LI, DominatorTree &DT) {
   for (auto *BB : S->getRegion().blocks()) {
-    auto *Stmt = S->getStmtFor(BB);
-    if (!Stmt)
-      continue;
-
     for (auto &Inst : *BB) {
+      auto *Stmt = S->getStmtFor(&Inst);
+      if (!Stmt)
+        continue;
+
       if (isIgnoredIntrinsic(&Inst))
         continue;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35610.107493.patch
Type: text/x-patch
Size: 655 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170720/a0355b9d/attachment.bin>


More information about the llvm-commits mailing list