On Wed, 2024-12-18 at 15:09 +0800, Lulu Cheng wrote:
> 
> 在 2024/12/16 下午9:19, Xi Ruoyao 写道:
> > A generic CRC optimization pass has been implemented in r15-5850. 
> > But
> > without target-specific code, it'll only optimize the CRC loop to a
> > table lookup.  With LoongArch-specific code we can do it better: for
> > 64-bit LoongArch and the IEEE 802.3 polynomial or the Castagnoli
> > polynomial, we can directly invoke the hardware instruction; even if
> > a
> > hardware instruction isn't available, we can still use LoongArch bit
> > reversion instructions to optimize the bit reverse before looking up
> > the
> > table.
> 
> I think the implementation is neat and I have no problem with it.
> 
> Thanks!

Pushed r15-6323, the only change from here: the test case is formatted
to GNU style with clang-format.

-- 
Xi Ruoyao <xry...@xry111.site>
School of Aerospace Science and Technology, Xidian University

Reply via email to