[PATCH] D33752: Add opt-bisect support to polly
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 31 18:46:01 PDT 2017
efriedma created this revision.
This is useful for debugging miscompiles and extracting testcases for crashes. See http://llvm.org/docs/OptBisect.html .
Depends on https://reviews.llvm.org/D33751.
Repository:
rL LLVM
https://reviews.llvm.org/D33752
Files:
lib/Analysis/ScopPass.cpp
lib/Transform/CodePreparation.cpp
Index: lib/Transform/CodePreparation.cpp
===================================================================
--- lib/Transform/CodePreparation.cpp
+++ 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(); }
Index: lib/Analysis/ScopPass.cpp
===================================================================
--- lib/Analysis/ScopPass.cpp
+++ 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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33752.100957.patch
Type: text/x-patch
Size: 964 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170601/cccade7c/attachment.bin>
More information about the llvm-commits
mailing list