Applied to master, with the commit-message regenerated as: gcc/ChangeLog:
* config/riscv/riscv.cc (riscv_rtx_costs): Add BSWAP. Thanks, Philipp. On Wed, 9 Nov 2022 at 04:15, Palmer Dabbelt <pal...@rivosinc.com> wrote: > > On Tue, 08 Nov 2022 18:57:26 PST (-0800), jeffreya...@gmail.com wrote: > > > > On 11/8/22 12:54, Philipp Tomsich wrote: > >> The BSWAP operation is not handled in rtx_costs. Add it. > >> > >> With Zbb, BSWAP for XLEN is a single instruction; for smaller modes, > >> it will expand into two. > >> > >> gcc/ChangeLog: > >> > >> * config/riscv/riscv.c (rtx_costs): Add BSWAP. > > > > OK. > > It's riscv_rtx_costs. > > (I don't usually read ChangeLog entries that closely, just happened to > stumble on it when poking around.) > > > > > > Jeff