On 6/16/25 11:55 PM, Jakub Jelinek wrote:
Hi!
The following testcase ICEs, because optimize_crc_loop inserts a call
statement before labels instead of after labels.
Fixed thusly (plus fixed other issues noticed around it),
bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk/15.2?
2025-06-17 Jakub Jelinek <ja...@redhat.com>
PR tree-optimization/120677
* gimple-crc-optimization.cc (crc_optimization::optimize_crc_loop):
Insert before gsi_after_labels instead of gsi_start_bb. Use
gimple_bb (output_crc) instead of output_crc->bb. Formatting fix.
* gcc.c-torture/execute/pr120677.c: New test.
Thanks for taking care of this. Hopefully you didn't have to burn too
much time chasing it down.
jeff