The attached patch is an attempt to fix the following bugs:<br><br><a href="http://llvm.org/bugs/show_bug.cgi?id=14652" target="_blank">http://llvm.org/bugs/show_bug.cgi?id=14652</a><br><a href="http://llvm.org/bugs/show_bug.cgi?id=14740" target="_blank">http://llvm.org/bugs/show_bug.cgi?id=14740</a><br>

<br>It fixes the code which scalarizes vector shifts and ensures that the type of the shift amount operand is the type TargetLowering::getShiftAmountTy returns. This is the same approach taken in SelectionDAGBuilder::visitShift.<br>

<br>The command that was failing in 14652 passes after this patch is applied and fixes 14740 as well.<br>