Fix a couple bugs in the const div stuff where we'd generate MULHS/MULHU
authorNate Begeman <natebegeman@mac.com>
Thu, 20 Oct 2005 17:45:03 +0000 (17:45 +0000)
committerNate Begeman <natebegeman@mac.com>
Thu, 20 Oct 2005 17:45:03 +0000 (17:45 +0000)
commitc6a454e8d57acd47e9769516b36ce0810e9dc4f4
tree70b28b39bfc971564662eadbe4c6af5eb2edae0a
parentf75f2a0a026621430f412d903c489b3fc951dbb3
Fix a couple bugs in the const div stuff where we'd generate MULHS/MULHU
for types that aren't legal, and fail a divisor is less than zero
comparison, which would cause us to drop a subtract.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23846 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp