[SelectionDAGBuilder] Remove LegalTypes=false from a call to getShiftAmountConstant.
authorCraig Topper <craig.topper@sifive.com>
Fri, 18 Feb 2022 23:27:38 +0000 (15:27 -0800)
committerCraig Topper <craig.topper@sifive.com>
Fri, 18 Feb 2022 23:36:35 +0000 (15:36 -0800)
commit04f815c26f7c7b7932c0f80fda8fcb5fa5814bca
tree2b1b2d8640ba82303763f933a011e3cb9059e0bc
parent86b5e256628ae49193ad9962626a73bafeda2883
[SelectionDAGBuilder] Remove LegalTypes=false from a call to getShiftAmountConstant.

getShiftAmountTy will return MVT::i32 if the shift amount
coming from the target's getScalarShiftAmountTy can't reprsent
all possible values. That should eliminate the need to use the
pointer type which is what we do when LegalTypes is false.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D120165
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp