[llvm] [RISCV][GISEL] Add legalizer for G_BSWAP (PR #70226)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 25 15:31:01 PDT 2023
================
@@ -81,6 +81,10 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST) {
.clampScalar(BigTyIdx, XLenLLT, XLenLLT);
}
+ getActionDefinitionsBuilder(G_BSWAP)
+ .clampScalar(0, s16, XLenLLT)
----------------
topperc wrote:
Use maxScalar to avoid the bottom clamp.
https://github.com/llvm/llvm-project/pull/70226
More information about the llvm-commits
mailing list