Fix PR8702 by not having LoopSimplify claim to preserve LCSSA form. As described
authorDuncan Sands <baldrick@free.fr>
Sun, 2 Jan 2011 13:38:21 +0000 (13:38 +0000)
committerDuncan Sands <baldrick@free.fr>
Sun, 2 Jan 2011 13:38:21 +0000 (13:38 +0000)
commit67fb341f8b0a72ca0da8ce53baa3f335c1310a85
treebf966b039313a730834bb86d8195289f4569f126
parent86a582ddfb32816e8f0c3068e0765a1e3a364b50
Fix PR8702 by not having LoopSimplify claim to preserve LCSSA form.  As described
in the PR, the pass could break LCSSA form when inserting preheaders.  It probably
would be easy enough to fix this, but since currently we always go into LCSSA form
after running this pass, doing so is not urgent.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122695 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/LoopSimplify.cpp
test/Transforms/LoopSimplify/2010-12-26-PHIInfiniteLoop.ll [new file with mode: 0644]