diff options
author | Anna Thomas <anna@azul.com> | 2017-07-07 20:12:32 +0000 |
---|---|---|
committer | Anna Thomas <anna@azul.com> | 2017-07-07 20:12:32 +0000 |
commit | e3872003d0129dcb8324e7025012e4201bf364f4 (patch) | |
tree | 1131ea9e2ca3bd975dac16267d282c4c14613593 /llvm/lib | |
parent | 1283e9868d2c1cbf31a834bb5151af6d046c1cb3 (diff) | |
download | bcm5719-llvm-e3872003d0129dcb8324e7025012e4201bf364f4.tar.gz bcm5719-llvm-e3872003d0129dcb8324e7025012e4201bf364f4.zip |
[LoopUnrollRuntime] Support multiple exit blocks unrolling when prolog remainder generated
With the NFC refactoring in rL307417 (git SHA 987dd01), all the logic
is in place to support multiple exit/exiting blocks when prolog
remainder is generated.
This patch removed the assert that multiple exit blocks unrolling is only
supported when epilog remainder is generated.
Also, added test runs and checks with PROLOG prefix in
runtime-loop-multiple-exits.ll test cases.
llvm-svn: 307435
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp index 5b3282c5940..8733a1388df 100644 --- a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp +++ b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp @@ -497,8 +497,6 @@ bool llvm::UnrollRuntimeLoopRemainder(Loop *L, unsigned Count, // Support runtime unrolling for multiple exit blocks and multiple exiting // blocks. if (!LatchExit) { - assert(UseEpilogRemainder && "Multi exit unrolling is currently supported " - "unrolling with epilog remainder only!"); LatchExit = LatchBR->getSuccessor(ExitIndex); // We rely on LCSSA form being preserved when the exit blocks are // transformed. |