[PATCH] D102310: [RISCV][CodeGen] Implement IR Intrinsic support for K extension
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 25 22:09:39 PST 2022
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:282
setOperationAction(ISD::BSWAP, XLenVT,
Subtarget.hasStdExtZbb() ? Legal : Expand);
}
----------------
craig.topper wrote:
> You want Zbkb in addition to Zbb here.
Does this line exceed 80 columns?
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoZb.td:890
def : Pat<(i32 (rotl (riscv_grev GPR:$rs1, 24), (i32 16))), (GREVI GPR:$rs1, 8)>;
+} // Predicates = [HasStdExtZbp, IsRV32]
----------------
Revert this
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoZb.td:892
+let Predicates = [HasStdExtZbp, IsRV32] in {
// We treat rev8 as a separate instruction, so match it directly.
----------------
Revert this
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoZb.td:899
def : Pat<(i32 (riscv_unshfl GPR:$rs1, 15)), (UNZIP_RV32 GPR:$rs1)>;
-} // Predicates = [HasStdExtZbp, IsRV32]
+} // Predicates = [HasStdExtZbpOrZbkb, IsRV32]
----------------
Revert this
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102310/new/
https://reviews.llvm.org/D102310
More information about the llvm-commits
mailing list