Fix PR14060, an infinite loop in reassociate. The problem was that one of the
authorDuncan Sands <baldrick@free.fr>
Sun, 18 Nov 2012 19:27:01 +0000 (19:27 +0000)
committerDuncan Sands <baldrick@free.fr>
Sun, 18 Nov 2012 19:27:01 +0000 (19:27 +0000)
commit20bd7fa0f702346a033535630320046d237ed954
treec55a278eedc1d161e23455fbe6b726996719a4c5
parent431aa1227c8995d571fc726ebaaadc6d741aee39
Fix PR14060, an infinite loop in reassociate.  The problem was that one of the
operands of the expression being written was wrongly thought to be reusable as
an inner node of the expression resulting in it turning up as both an inner node
*and* a leaf, creating a cycle in the def-use graph.  This would have caused the
verifier to blow up if things had gotten that far, however it managed to provoke
an infinite loop first.

llvm-svn: 168291
llvm/lib/Transforms/Scalar/Reassociate.cpp
llvm/test/Transforms/Reassociate/crash.ll