diff options
| author | Tobias Grosser <tobias@grosser.es> | 2016-04-03 19:36:52 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2016-04-03 19:36:52 +0000 |
| commit | 151ae32dba245f1052e99a7f40757bdb867f24dd (patch) | |
| tree | af99a8167112c1d6c6d074797c86f56cfd1b92e0 /polly/lib/Analysis/ScopDetection.cpp | |
| parent | 8efe38a1e2c469d49548a23f4f576dfad52b40e4 (diff) | |
| download | bcm5719-llvm-151ae32dba245f1052e99a7f40757bdb867f24dd.tar.gz bcm5719-llvm-151ae32dba245f1052e99a7f40757bdb867f24dd.zip | |
Revert "[FIX] Do not create a SCoP in the presence of infinite loops"
This reverts commit r265260, as it caused the following 'make check-polly'
failures:
Polly :: ScopDetect/index_from_unpredictable_loop.ll
Polly :: ScopInfo/multiple_exiting_blocks.ll
Polly :: ScopInfo/multiple_exiting_blocks_two_loop.ll
Polly :: ScopInfo/schedule-const-post-dominator-walk-2.ll
Polly :: ScopInfo/schedule-const-post-dominator-walk.ll
Polly :: ScopInfo/switch-5.ll
llvm-svn: 265272
Diffstat (limited to 'polly/lib/Analysis/ScopDetection.cpp')
| -rw-r--r-- | polly/lib/Analysis/ScopDetection.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index c0dba128beb..594d656a284 100644 --- a/polly/lib/Analysis/ScopDetection.cpp +++ b/polly/lib/Analysis/ScopDetection.cpp @@ -1029,14 +1029,8 @@ bool ScopDetection::canUseISLTripCount(Loop *L, // Ensure the loop has valid exiting blocks as well as latches, otherwise we // need to overapproximate it as a boxed loop. SmallVector<BasicBlock *, 4> LoopControlBlocks; - L->getExitingBlocks(LoopControlBlocks); - - // Loops without exiting blocks cannot be handled by the schedule generation - // as it depends on a region covering that is not given. - if (LoopControlBlocks.empty()) - return false; - L->getLoopLatches(LoopControlBlocks); + L->getExitingBlocks(LoopControlBlocks); for (BasicBlock *ControlBB : LoopControlBlocks) { if (!isValidCFG(*ControlBB, true, false, Context)) return false; |

