On Fri, 2024-05-24 at 12:42 +0400, Mariam Arutunian wrote: > This patch adds a new compiler pass aimed at identifying naive CRC > implementations, > characterized by the presence of a loop calculating a CRC (polynomial > long > division). > Upon detection of a potential CRC, the pass prints an informational > message. > > Performs CRC optimization if optimization level is >= 2, > besides optimizations for size and if fno_gimple_crc_optimization > given. > > This pass is added for the detection and optimization of naive CRC > implementations, > improving the efficiency of CRC-related computations. > > This patch includes only initial fast checks for filtering out non- > CRCs, > detected possible CRCs verification and optimization parts will be > provided > in subsequent patches. > > gcc/ > > * Makefile.in (OBJS): Add gimple-crc-optimization.o. > * common.opt (fgimple-crc-optimization): New option. > * doc/invoke.texi (-fgimple-crc-optimization): Add documentation.
A minor nitpick: patches that add new options (and their documentation) ought to affect the corresponding .opt.urls, so that we can map from the new option to the URL of its documentation. Running "make regenerate-opt-urls" in the build/gcc subdirectory ought to update common.opt.urls for you (provided you've done a "make html"). [...snip...] Dave