Don't build illegal ops in DAGCombiner::SimplifyBinOpWithSameOpcodeHands().
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 8 Aug 2009 20:42:17 +0000 (20:42 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 8 Aug 2009 20:42:17 +0000 (20:42 +0000)
commit17421d81fdbc94dbd8b3549b095303baaf52e689
tree1f468661064098a70cb0f083a6633d03a8a73bc0
parent9aee18186c1f9b6477914c913defeae1cb036548
Don't build illegal ops in DAGCombiner::SimplifyBinOpWithSameOpcodeHands().

Blackfin supports and/or/xor on i32 but not on i16. Teach
DAGCombiner::SimplifyBinOpWithSameOpcodeHands to not produce illegal nodes
after legalize ops.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78497 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/Blackfin/promote-logic.ll