[SelectionDAG] ComputeNumSignBits - use Valid Min/Max shift amount helpers directly...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 30 May 2020 13:02:14 +0000 (14:02 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 30 May 2020 13:02:14 +0000 (14:02 +0100)
commit9d0bfcec8377acc29e8a9983e8343dba8e7e900d
treee057fbd8d1c3017fc9d4106bfdaba3b0bf37c219
parent179f8ad08de07d52dbccd4da339103a4d03937c7
[SelectionDAG] ComputeNumSignBits - use Valid Min/Max shift amount helpers directly. NFCI.

We are calling getValidShiftAmountConstant first followed by getValidMinimumShiftAmountConstant/getValidMaximumShiftAmountConstant if that failed. But both are used in the same way in ComputeNumSignBits and the Min/Max variants call getValidShiftAmountConstant internally anyhow.
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp