[SelectionDAG] ComputeNumSignBits - Use getValidShiftAmountConstant for shift opcodes
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 13 Jan 2020 14:11:57 +0000 (14:11 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 13 Jan 2020 14:12:12 +0000 (14:12 +0000)
commit376bc39c829fab7ad14424c5418c03ed6649d839
tree5955d912ab71f239a0eebc1d07c1dff96858f2a4
parent6d1a8fd447934387605ea11d35e1b62866b7d093
[SelectionDAG] ComputeNumSignBits - Use getValidShiftAmountConstant for shift opcodes

getValidShiftAmountConstant handles out of bounds shift amounts for us, allowing us to remove the local handling.
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp