Don't add the instruction about to be RAUW'ed and erased to the
authorChandler Carruth <chandlerc@gmail.com>
Sat, 24 Mar 2012 22:34:23 +0000 (22:34 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 24 Mar 2012 22:34:23 +0000 (22:34 +0000)
commitc5b785b91c922bbb3d5adb4b042c976bebe00e4d
treedf99957d17c3abf800bfcd821ca0da68dbddddab
parent300361a71767ddc6502ae8fffda877da986c2f22
Don't add the instruction about to be RAUW'ed and erased to the
worklist. This can happen in theory when an instruction uses itself,
such as a PHI node. This was spotted by inspection, and unfortunately
I've not been able to come up with a test case that would trigger it. If
anyone has ideas, let me know...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153396 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp