[LoopUnrolling] Fix a bug introduced in r259869 (PR26688).
authorMichael Zolotukhin <mzolotukhin@apple.com>
Mon, 22 Feb 2016 21:21:45 +0000 (21:21 +0000)
committerMichael Zolotukhin <mzolotukhin@apple.com>
Mon, 22 Feb 2016 21:21:45 +0000 (21:21 +0000)
commitd734bea8ba5291a2f421b2472246f87b86b6d61c
tree0067ae2d16249f8bd23665fd9e34495a80ab0b99
parent922bef4f380c015ed370776a33a92b50c41ac04d
[LoopUnrolling] Fix a bug introduced in r259869 (PR26688).

The issue was that we only required LCSSA rebuilding if the immediate
parent-loop had values used outside of it. The fix is to enaable the
same logic for all outer loops, not only immediate parent.

llvm-svn: 261575
llvm/lib/Transforms/Utils/LoopUnroll.cpp
llvm/test/Transforms/LoopUnroll/rebuild_lcssa.ll