[TargetLowering] Remove workaround for old behavior of getShiftAmountTy. NFC
authorCraig Topper <craig.topper@sifive.com>
Tue, 28 Dec 2021 22:05:40 +0000 (14:05 -0800)
committerCraig Topper <craig.topper@sifive.com>
Tue, 28 Dec 2021 22:08:25 +0000 (14:08 -0800)
commit1c6b740d4b1bb8f74c8eb2fa38b21d684d32ca75
tree97e3dd293239200cbc13ba9f6e1e6c9434a49700
parentcd284b7ac0615afc6e0f1a30da2777e361de27a3
[TargetLowering] Remove workaround for old behavior of getShiftAmountTy. NFC

getShiftAmountTy used to directly return the shift amount type from
the target which could be too small for large illegal types. For
example, X86 always returns i8.

The code here detected this and used i32 instead if it won't fit. This
behavior was added to getShiftAmountTy in D112469 so we no longer need
this workaround.
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp