[RISCV] Pull APInt/computeKnonwbits specifics out of computeGREVOrGORC. NFC
authorCraig Topper <craig.topper@sifive.com>
Tue, 29 Mar 2022 02:31:20 +0000 (19:31 -0700)
committerCraig Topper <craig.topper@sifive.com>
Tue, 29 Mar 2022 03:53:54 +0000 (20:53 -0700)
commit45e85feba6e49a4d3257b78f1a50f94b3c79a492
tree1c2621e1f368bece53d17f99982c22e343e30427
parentb316126887d0e41a9e22717419d43af9d81b764c
[RISCV] Pull APInt/computeKnonwbits specifics out of computeGREVOrGORC. NFC

This function now takes a uint64_t instead of an APInt. The caller
is responsible for masking the shift amount, extracting and inserting
into the KnownBits APInts, and inverting to compute zeros.

This is less code and cleaner division of responsibilities.
llvm/lib/Target/RISCV/RISCVISelLowering.cpp