[PATCH] D43293: [SimplifyCFG] Don't remove preheaders when we need canonical loops.
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 14 08:18:57 PST 2018
dmgreen created this revision.
dmgreen added reviewers: eli.friedman, pacxx, skatkov.
Commit https://reviews.llvm.org/rL324208 loosened a restriction on removing basic blocks
in the intent to remove empty back edge blocks, but also started
removing preheaders in the process. This prevents the preheaders
from being removed when we want to keep loop simple form.
https://reviews.llvm.org/D43293
Files:
include/llvm/Transforms/Utils/Local.h
lib/Transforms/Scalar/SimplifyCFGPass.cpp
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/LoopUnswitch/2015-06-17-Metadata.ll
test/Transforms/LoopUnswitch/infinite-loop.ll
test/Transforms/SimplifyCFG/UncondBranchToHeader.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43293.134228.patch
Type: text/x-patch
Size: 7608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180214/9843da30/attachment.bin>
More information about the llvm-commits
mailing list