Reapply 122353-122355 with fixes. 122354 was wrong;
authorDale Johannesen <dalej@apple.com>
Tue, 21 Dec 2010 21:55:50 +0000 (21:55 +0000)
committerDale Johannesen <dalej@apple.com>
Tue, 21 Dec 2010 21:55:50 +0000 (21:55 +0000)
commitc72b18cdc8f155dbb99d554056f3bb6b38f5f72c
tree3b5ea1ea065dc0c9f4ceb067754b3c59e59bd998
parent7d6fe13efc9bcb69d3479e32f8eace933c5bd2d5
Reapply 122353-122355 with fixes.  122354 was wrong;
the shift type was needed one place, the shift count
type another.  The transform in 123555 had the same
problem.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122366 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/divide-by-constant.ll
test/CodeGen/X86/x86-64-extend-shift.ll [new file with mode: 0644]