]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/103190 - fix assert in reassoc stmt placement with asm
authorRichard Biener <rguenther@suse.de>
Thu, 11 Nov 2021 14:12:32 +0000 (15:12 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 11 Nov 2021 15:06:24 +0000 (16:06 +0100)
commitfac4c4bdab1735bd8a87e37c519f0260e4769f2a
treef05c100b60c470ea7e1fbd4fc7190eac176ec3b2
parentbfa04d0ec958ebff38ea9d2340a3f4f8e4c04a2d
tree-optimization/103190 - fix assert in reassoc stmt placement with asm

This makes sure to only assert we don't run into a asm goto when
inserting a stmt in reassoc, matching the condition in
can_reassociate_p.  We can handle EH edges from an asm just like
EH edges from any other stmt.

2021-11-11  Richard Biener  <rguenther@suse.de>

PR tree-optimization/103190
* tree-ssa-reassoc.c (insert_stmt_after): Only assert on asm goto.
gcc/tree-ssa-reassoc.c