Files
clang-p2996/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
Florian Hahn 12dd3a7b54 Recommit "[LoopUnroll] Directly update DT instead of DTU."
This reverts commit c5ea42bcf4.

Recommit the patch with a fix for loops where the exiting terminator is
not a branch instruction. In that case, ExitInfos may be empty. In
addition to checking if there's a single exiting block also check if
there's a single ExitInfo.

A test case has been added in f92b35392e.
2023-01-20 16:33:40 +00:00

78 KiB