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/InductiveRangeCheckElimination.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/InductiveRangeCheckElimination.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp b/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp index e4b03efa5d2..55018001963 100644 --- a/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp +++ b/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp @@ -1383,6 +1383,9 @@ IntersectRange(ScalarEvolution &SE, } bool InductiveRangeCheckElimination::runOnLoop(Loop *L, LPPassManager &LPM) { + if (skipLoop(L)) + return false; + if (L->getBlocks().size() >= LoopSizeCutoff) { DEBUG(dbgs() << "irce: giving up constraining loop, too large\n";); return false; |