OSDN Git Service

[LoopInterchange] Do not change LI for BBs in child loops.
authorFlorian Hahn <florian.hahn@arm.com>
Mon, 23 Apr 2018 21:38:19 +0000 (21:38 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Mon, 23 Apr 2018 21:38:19 +0000 (21:38 +0000)
commit99abef011d5c9d4160ed5d8b62fd735a1e042783
tree37d18371a733167dfee7225b6ee4822abecbea40
parent0597a7537232ddc59ebfc8472d340168b1a7ee13
[LoopInterchange] Do not change LI for BBs in child loops.

If a loop with child loops becomes our new inner loop after
interchanging, we only need to update LoopInfo for the blocks defined in
the old outer loop. BBs in child loops will stay there.

Reviewers: efriedma, karthikthecool, mcrosier

Reviewed By: efriedma

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330653 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopInterchange.cpp