diff options
author | Andrew Kaylor <andrew.kaylor@intel.com> | 2016-05-03 22:32:30 +0000 |
---|---|---|
committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2016-05-03 22:32:30 +0000 |
commit | 50271f787e99a35010ddbaafaa8fe711da5899f8 (patch) | |
tree | 4a1e7c15845cfd69a2abf1d084c513975a3dfa8d /llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp | |
parent | 539cd6758b8da2f35fb88a275374f752e7671e47 (diff) | |
download | bcm5719-llvm-50271f787e99a35010ddbaafaa8fe711da5899f8.tar.gz bcm5719-llvm-50271f787e99a35010ddbaafaa8fe711da5899f8.zip |
Add opt-bisect support to additional passes that can be skipped
Differential Revision: http://reviews.llvm.org/D19882
llvm-svn: 268457
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp index 7dd36d73601..e6933336947 100644 --- a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp +++ b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp @@ -209,10 +209,7 @@ struct CFGSimplifyPass : public FunctionPass { initializeCFGSimplifyPassPass(*PassRegistry::getPassRegistry()); } bool runOnFunction(Function &F) override { - if (PredicateFtor && !PredicateFtor(F)) - return false; - - if (skipFunction(F)) + if (skipFunction(F) || (PredicateFtor && !PredicateFtor(F))) return false; AssumptionCache *AC = |