[RISCV] Use uint64_t countTrailingZeros/Ones instead of APInt. NFC
authorCraig Topper <craig.topper@sifive.com>
Tue, 30 Aug 2022 19:37:00 +0000 (12:37 -0700)
committerCraig Topper <craig.topper@sifive.com>
Tue, 30 Aug 2022 19:39:36 +0000 (12:39 -0700)
commit7973346d1672dda58c5ba33918ef38bf707daa42
treec777915a8fc7ce9d7593e74619cd1fe95695c290
parent15090afd663160fed39034cfbd938ec26da8a441
[RISCV] Use uint64_t countTrailingZeros/Ones instead of APInt. NFC

We know the type is 32 or 64 bits, we can use getZExtValue and
bypass the slow path check in APInt.
llvm/lib/Target/RISCV/RISCVInstrInfo.td