Get the type of a shift from the shift, not from its shift
authorDale Johannesen <dalej@apple.com>
Tue, 21 Dec 2010 20:06:19 +0000 (20:06 +0000)
committerDale Johannesen <dalej@apple.com>
Tue, 21 Dec 2010 20:06:19 +0000 (20:06 +0000)
commit5ecc340e34e6ca4b9f6ebde6c1379cb3b8084f69
tree38c30ce8b5ef25045ec848be5d11df12aa0ea26a
parentefc96dd38c285c1a01aa6f613f533d1205e4acb2
Get the type of a shift from the shift, not from its shift
count operand.  These should be the same but apparently are
not always, and this is cleaner anyway.  This improves the
code in an existing test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122354 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/divide-by-constant.ll