When determining whether the new instruction was already present in
authorDuncan Sands <baldrick@free.fr>
Wed, 22 Dec 2010 17:15:25 +0000 (17:15 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 22 Dec 2010 17:15:25 +0000 (17:15 +0000)
commit1cd05bb605e3c3eee9197d3f10b628c60d0cc07a
tree609a6fe57846ab8aae306f276b9db8157c866145
parentb3898af89fb4cb8146076e1a8e0bd5ecea4f5944
When determining whether the new instruction was already present in
the original instruction, half the cases were missed (making it not
wrong but suboptimal).  Also correct a typo (A <-> B) in the second
chunk.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122414 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/2010-12-20-Distribute.ll