OSDN Git Service

Fix issues (infinite loop and/or crash) with self-referential instructions, for
authorDuncan Sands <baldrick@free.fr>
Fri, 15 Jun 2012 08:37:50 +0000 (08:37 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 15 Jun 2012 08:37:50 +0000 (08:37 +0000)
commitcd117f736c47947af5c6549734549e135e626c5c
treeee5a57234130b7d7203e0262193a0ba113d6733e
parent8e58b3e9b875c70e09d97d449373744aacc35ea9
Fix issues (infinite loop and/or crash) with self-referential instructions, for
example degenerate phi nodes and binops that use themselves in unreachable code.
Thanks to Charles Davis for the testcase that uncovered this can of worms.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158508 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/Reassociate.cpp
test/Transforms/Reassociate/crash.ll