Fix PR8161, in which an unreachable loop causes recursive instruction simplification...
authorOwen Anderson <resistor@mac.com>
Thu, 16 Sep 2010 17:42:36 +0000 (17:42 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 16 Sep 2010 17:42:36 +0000 (17:42 +0000)
commit4b91c3ac96fd93c7e9794d427787c29c68c25f68
tree0725f1b764911d22043e3de87a6abfbda5ffbb26
parent1d51c41a457b99d646e3a9b9fae1e913f7a60dc0
Fix PR8161, in which an unreachable loop causes recursive instruction simplification to try
to replace an instruction with itself.  Add a predicate to the simplifier to prevent this case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114097 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/CorrelatedValuePropagation/crash.ll [new file with mode: 0644]