tree-optimization/100329 - avoid reassociating asm goto defs
authorRichard Biener <rguenther@suse.de>
Tue, 4 May 2021 08:07:35 +0000 (10:07 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 4 May 2021 10:31:50 +0000 (12:31 +0200)
commita310bb73edc9548e08d1fa28e7a56246caf27757
tree4494b14985d410f01d6ecb2f5616b3884aa0508f
parent2326627eb19d8c21251fd60479f1a190621c475b
tree-optimization/100329 - avoid reassociating asm goto defs

This avoids reassociating asm goto defs because we have no idea
on which outgoing edge to insert defs.

2021-05-04  Richard Biener  <rguenther@suse.de>

PR tree-optimization/100329
* tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
asm goto defs.
(insert_stmt_after): Assert we're not running into asm goto.

* gcc.dg/torture/pr100329.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr100329.c [new file with mode: 0644]
gcc/tree-ssa-reassoc.c