Revert r114097, adding back in the assertion against replacing an Instruction by...
authorOwen Anderson <resistor@mac.com>
Thu, 16 Sep 2010 20:51:41 +0000 (20:51 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 16 Sep 2010 20:51:41 +0000 (20:51 +0000)
commit4e282decf3960bfa6b1fe3fd77bb51ff96121515
treebdffe2a3ec4edaf9b9a90bf77c142d645c66e1b4
parent35aa94b229d516b9eb775ad4e13a8e2d03221cf9
Revert r114097, adding back in the assertion against replacing an Instruction by itself.  Now that CorrelatedValuePropagation is
more careful not to call SimplifyInstructionsInBlock() on an unreachable block, the issue has been fixed at a higher level.  Add
a big warning to SimplifyInstructionsInBlock() to hopefully prevent this in the future.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114117 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/InstructionSimplify.h
include/llvm/Transforms/Utils/Local.h
lib/Analysis/InstructionSimplify.cpp