tree-optimization/111465 - bougs jump threading with no-copy src block
commit564ecb7d5afb0bb4eb39285ce65c631490e37dce
authorRichard Biener <rguenther@suse.de>
Tue, 19 Sep 2023 10:36:04 +0000 (19 12:36 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 19 Sep 2023 11:23:40 +0000 (19 13:23 +0200)
tree8915cc1352a9f652a79ee258262280d06a44cd3b
parent836e2cff7d9e4c06bf8ffd7e2df5dd134d8a22c2
tree-optimization/111465 - bougs jump threading with no-copy src block

The following avoids to forward thread a path with a EDGE_NO_COPY_SRC_BLOCK
block that became non-empty due to folding.

PR tree-optimization/111465
* tree-ssa-threadupdate.cc (fwd_jt_path_registry::thread_block_1):
Cancel the path when a EDGE_NO_COPY_SRC_BLOCK became non-empty.

* g++.dg/torture/pr111465.C: New testcase.
gcc/testsuite/g++.dg/torture/pr111465.C [new file with mode: 0644]
gcc/tree-ssa-threadupdate.cc