[Bug middle-end/125545] [14/15/16 Regression] ICE on aarch64: in insert_stmt_after, at tree-ssa-reassoc.cc:1527 with asm goto at -O1/2/3 since r14-3995
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 15 13:38:13 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125545
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-16 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:ecb6eba763e671490384e70df26a85051012e2d1
commit r16-9096-gecb6eba763e671490384e70df26a85051012e2d1
Author: Richard Biener <rguenther@suse.de>
Date: Tue Jun 2 14:56:12 2026 +0200
tree-optimization/125545 - reassoc insering after asm goto
There's one case we can handle just fine which is when the asm goto
has a single successor (it's fallthru edge, possibly shared with
an asm goto label). As we're using dominance based insertion
point discovery we have to handle this case.
PR tree-optimization/125545
* tree-ssa-reassoc.cc (insert_stmt_after): Allow asm goto
with a single successor.
* gcc.dg/torture/pr125545.c: New testcase.
(cherry picked from commit 31c818a7ff8f090e58379c52c7589f2e6e35de20)
More information about the Gcc-bugs
mailing list