]> granicus.if.org Git - llvm/commit
[LoopUnroll] Use addClonedBlockToLoopInfo to clone the top level loop (NFC)
authorFlorian Hahn <florian.hahn@arm.com>
Tue, 31 Jan 2017 11:13:44 +0000 (11:13 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Tue, 31 Jan 2017 11:13:44 +0000 (11:13 +0000)
commit2938de42db85fd095a750e94a33d50216c053b61
treee66c2d47d271176ee70dddd433d3248c6cc0d0b4
parent0f9a41d64a5e91ce80a38885777a771ce38da24b
[LoopUnroll] Use addClonedBlockToLoopInfo to clone the top level loop (NFC)

Summary:
rL293124 added the necessary infrastructure to properly add the cloned
top level loop to LoopInfo, which means we do not have to do it manually
in CloneLoopBlocks.

@mkuper sorry for not pointing this out during my review of D29156, I just
realized that today.

Reviewers: mzolotukhin, chandlerc, mkuper

Reviewed By: mkuper

Subscribers: llvm-commits, mkuper

Differential Revision: https://reviews.llvm.org/D29173

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293615 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/LoopUnrollRuntime.cpp