OSDN Git Service

[Cloning] cloneLoopWithPreheader(): add assert to ensure no sub-loops
authorVaivaswatha Nagaraj <vn@compilertree.com>
Wed, 27 Apr 2016 05:25:09 +0000 (05:25 +0000)
committerVaivaswatha Nagaraj <vn@compilertree.com>
Wed, 27 Apr 2016 05:25:09 +0000 (05:25 +0000)
commitbd93c15ac5a24afaa28478be816ae1d4bc830267
tree7168e47a0c196c7183a11f03753b3c6ec2e3215e
parentc95e6f9aac773a396b1c6a8d41e1c8191c52cb58
[Cloning] cloneLoopWithPreheader(): add assert to ensure no sub-loops

Summary:
cloneLoopWithPreheader() does not update LoopInfo for sub-loop of
the original loop being cloned. Add assert to ensure no sub-loops for loop being cloned.

Reviewers: anemet, ashutosh.nema, hfinkel

Subscribers: mzolotukhin, llvm-commits

Differential Revision: http://reviews.llvm.org/D15922

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267671 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/Cloning.h
lib/Transforms/Utils/CloneFunction.cpp