On 9/13/24 5:06 AM, Mariam Arutunian wrote:
After the loop exit an internal function call (CRC, CRC_REV) is added,
and its result is assigned to the output CRC variable (the variable where the calculated CRC is stored
after the loop execution).
The removal of the loop is left to CFG cleanup and DCE.

   gcc/

     * gimple-crc-optimization.cc (optimize_crc_loop): New function.
     (execute): Add optimize_crc_loop function call.
I believe Richi had a few comments on this. Once those are addressed, this is OK.

jeff

Reply via email to