[LoopUnrollRuntime] Bailout when multiple exiting blocks to the unique latch exit...
authorAnna Thomas <anna@azul.com>
Thu, 6 Jul 2017 18:39:26 +0000 (18:39 +0000)
committerAnna Thomas <anna@azul.com>
Thu, 6 Jul 2017 18:39:26 +0000 (18:39 +0000)
commiteb6d5d19508c5485aafb7f9a30dee819a3b64352
tree2ccf4707d6ff4c66f1933a4ce8522d6e00f26667
parent47c8f66997b6839e5fd59e4c4b73cebeba325f90
[LoopUnrollRuntime] Bailout when multiple exiting blocks to the unique latch exit block

Currently, we do not support multiple exiting blocks to the
latch exit block. However, this bailout wasn't triggered when we had a
unique exit block (which is the latch exit), with multiple exiting
blocks to that unique exit.

Moved the bailout so that it's triggered in both cases and added
testcase.

llvm-svn: 307291
llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
llvm/test/Transforms/LoopUnroll/runtime-loop-multiple-exits.ll