diff options
| author | Jakub Jelinek <jakub@redhat.com> | 2025-06-17 13:20:11 +0200 |
|---|---|---|
| committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2025-06-17 13:20:11 +0200 |
| commit | 75ffef5c6fa4e6e9576285e0403c06728309ae3e (patch) | |
| tree | 87447108dfd792cde216207e3ffeb2b319d48289 /libcpp | |
| parent | a63b97e918b8592d0f6af94c5355efc82a49e06d (diff) | |
crc: Fix up ICE from optimize_crc_loop [PR120677]
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).
2025-06-17 Jakub Jelinek <jakub@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.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions
