diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp index aca25be..a92cb6a 100644 --- a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp +++ b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp @@ -421,16 +421,6 @@ static bool canProfitablyUnrollMultiExitLoop( if (UnrollRuntimeMultiExit.getNumOccurrences()) return UnrollRuntimeMultiExit; - // TODO: We used to bail out for correctness (now fixed). Under what - // circumstances is this case profitable to allow? - if (!LatchExit->getSinglePredecessor()) - return false; - - // TODO: We used to bail out for correctness (now fixed). Under what - // circumstances is this case profitable to allow? - if (UseEpilogRemainder && L->getParentLoop()) - return false; - // The main pain point with multi-exit loop unrolling is that once unrolled, // we will not be able to merge all blocks into a straight line code. // There are branches within the unrolled loop that go to the OtherExits. |