diff options
author | Richard Biener <rguenther@suse.de> | 2025-09-03 10:41:17 +0200 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2025-09-03 14:33:36 +0200 |
commit | df64893e7082d7fae5d6863fd02371b37c78557f (patch) | |
tree | 17efa550baadd114e4b164c6cef68a69fc1251d1 /gcc/rust/hir | |
parent | c8a24f60b6874fca4fb3adb153f8d5f1dd72b951 (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
The sinking code currently does not heuristically avoid placing
code into an irreducible region in the same way it avoids placing
into a deeper loop nest. Critically for the PR we may not insert
a VDEF into a irreducible region that does not contain a virtual
definition. The following adds the missing heuristic and also
a stop-gap for the VDEF issue - since we cannot determine
validity inside an irreducible region we have to reject any
VDEF movement with destination inside such region, even when
it originates there. In particular irreducible sub-cycles are
not tracked separately and can cause issues.
I chose to not complicate the already partly incomplete assert
but prune it down to essentials.
PR tree-optimization/121756
* tree-ssa-sink.cc (select_best_block): Avoid irreducible
regions in otherwise same loop depth.
(statement_sink_location): When sinking a VDEF, never place
that into an irreducible region.
* gcc.dg/torture/pr121756.c: New testcase.
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions