OSDN Git Service

Keep the order of the basic blocks in the cloned loop as the original
authorWhitney Tsang <whitney.uwaterloo@gmail.com>
Mon, 8 Jul 2019 18:30:35 +0000 (18:30 +0000)
committerWhitney Tsang <whitney.uwaterloo@gmail.com>
Mon, 8 Jul 2019 18:30:35 +0000 (18:30 +0000)
commitdfc080859e7d9c321159829ee993825ee4d6aa2c
treec1f009bf92896b574b67182aae62a22da236755d
parentb513268c3813c989b34307dc626bae3994ab5110
Keep the order of the basic blocks in the cloned loop as the original
loop
Summary:
Do the cloning in two steps, first allocate all the new loops, then
clone the basic blocks in the same order as the original loop.
Reviewer: Meinersbur, fhahn, kbarton, hfinkel
Reviewed By: hfinkel
Subscribers: hfinkel, hiraditya, llvm-commits
Tag: https://reviews.llvm.org/D64224
Differential Revision:

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