Fix and/or/xor (cast A), (cast B) --> cast (and/or/xor A, B)
authorReid Spencer <rspencer@reidspencer.com>
Wed, 13 Dec 2006 08:27:15 +0000 (08:27 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Wed, 13 Dec 2006 08:27:15 +0000 (08:27 +0000)
commit5ae9cebef597db036923de3f653e732384426340
tree3634e2c3f662dad960f7e900e428d46c8bb83070
parent8782e53fd5ce0a81f3fa54ee20833629cdac966e
Fix and/or/xor (cast A), (cast B) --> cast (and/or/xor A, B)
The cast patch introduced the possibility that the wrong cast opcode
could be used and that this transform could trigger on different kinds
of cast operations. This patch rectifies that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32538 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp