[PATCH] D34006: [LoopSimplify] Add opt-bisect support to LoopSimplify pass
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 7 11:17:08 PDT 2017
craig.topper created this revision.
I don't we use this as a standalone pass in trunk, rather we always use the utility function entry point that can be called from other passes. It is also usable as a pass from the command line though. Our internal codebase does use it as a standalone pass though. But currently it doesn't participate in opt-bisect so it can create changes to the CFG while trying to bisect.
This patch adds the skipFunction call so that it will partcipate.
https://reviews.llvm.org/D34006
Files:
lib/Transforms/Utils/LoopSimplify.cpp
Index: lib/Transforms/Utils/LoopSimplify.cpp
===================================================================
--- lib/Transforms/Utils/LoopSimplify.cpp
+++ lib/Transforms/Utils/LoopSimplify.cpp
@@ -809,6 +809,9 @@
/// it in any convenient order) inserting preheaders...
///
bool LoopSimplify::runOnFunction(Function &F) {
+ if (skipFunction(F))
+ return false;
+
bool Changed = false;
LoopInfo *LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
DominatorTree *DT = &getAnalysis<DominatorTreeWrapperPass>().getDomTree();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34006.101781.patch
Type: text/x-patch
Size: 545 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170607/293228e0/attachment.bin>
More information about the llvm-commits
mailing list