OSDN Git Service

Fix a corner case in updating LoopInfo after fully unrolling an outer loop.
authorAndrew Trick <atrick@apple.com>
Fri, 18 Nov 2011 03:42:41 +0000 (03:42 +0000)
committerAndrew Trick <atrick@apple.com>
Fri, 18 Nov 2011 03:42:41 +0000 (03:42 +0000)
commit5865a8dfde3be74418b579f1162f111f3e46998d
tree1a6de422e136fc3276a1e3ec145fc3a8a4b36e60
parentcbbe33fde4f484ffdc9a171b69d6f98eb89dabd9
Fix a corner case in updating LoopInfo after fully unrolling an outer loop.

The loop tree's inclusive block lists are painful and expensive to
update. (I have no idea why they're inclusive). The design was
supposed to handle this case but the implementation missed it and my
unit tests weren't thorough enough.

Fixes PR11335: loop unroll update.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144970 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/LoopInfo.cpp
test/Transforms/LoopUnroll/unloop.ll