when legalizing extremely wide shifts, make sure that
authorChris Lattner <sabre@nondot.org>
Sun, 13 Feb 2011 09:10:56 +0000 (09:10 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 13 Feb 2011 09:10:56 +0000 (09:10 +0000)
commit915eeb488786379250808d47668c43e010efe566
tree7ca78048960929fd07ee81a7f764785aeaabf334
parentd3027738856d57ee22930deca0c7977fdc13e633
when legalizing extremely wide shifts, make sure that
the shift amounts are in a suitably wide type so that
we don't generate out of range constant shift amounts.

This fixes PR9028.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125458 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/CodeGen/X86/crash.ll