[PATCH] D33752: Add opt-bisect support to polly

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 1 14:29:39 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL304480: Add opt-bisect support to polly. (authored by efriedma).

Changed prior to commit:
  https://reviews.llvm.org/D33752?vs=100957&id=101111#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D33752

Files:
  polly/trunk/lib/Analysis/ScopPass.cpp
  polly/trunk/lib/Transform/CodePreparation.cpp


Index: polly/trunk/lib/Analysis/ScopPass.cpp
===================================================================
--- polly/trunk/lib/Analysis/ScopPass.cpp
+++ polly/trunk/lib/Analysis/ScopPass.cpp
@@ -22,6 +22,9 @@
 bool ScopPass::runOnRegion(Region *R, RGPassManager &RGM) {
   S = nullptr;
 
+  if (skipRegion(*R))
+    return false;
+
   if ((S = getAnalysis<ScopInfoRegionPass>().getScop()))
     return runOnScop(*S);
 
Index: polly/trunk/lib/Transform/CodePreparation.cpp
===================================================================
--- polly/trunk/lib/Transform/CodePreparation.cpp
+++ polly/trunk/lib/Transform/CodePreparation.cpp
@@ -72,12 +72,15 @@
 }
 
 bool CodePreparation::runOnFunction(Function &F) {
+  if (skipFunction(F))
+    return false;
+
   LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
   SE = &getAnalysis<ScalarEvolutionWrapperPass>().getSE();
 
   splitEntryBlockForAlloca(&F.getEntryBlock(), this);
 
-  return false;
+  return true;
 }
 
 void CodePreparation::releaseMemory() { clear(); }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33752.101111.patch
Type: text/x-patch
Size: 1036 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170601/8d0b3579/attachment.bin>


More information about the llvm-commits mailing list