aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-sra.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2021-10-20 18:52:45 +0200
committerAldy Hernandez <aldyh@redhat.com>2021-10-21 10:10:45 +0200
commit70e72c3a11315fb6a228b7f58d027c2e1fbb9940 (patch)
tree2c069ab6626af6f4632614411e9112117e95c869 /gcc/tree-sra.c
parentd438dd2523a35e073eed04d146f1e73e2514d93d (diff)
downloadgcc-70e72c3a11315fb6a228b7f58d027c2e1fbb9940.zip
gcc-70e72c3a11315fb6a228b7f58d027c2e1fbb9940.tar.gz
gcc-70e72c3a11315fb6a228b7f58d027c2e1fbb9940.tar.bz2
Avoid threading circular paths.
The backward threader keeps a hash of visited blocks to avoid crossing the same block twice. Interestingly, we haven't been checking it for the final block out of the path. This may be inherited from the old code, as it was simple enough that it didn't matter. With the upcoming changes enabling the fully resolving threader, it gets tripped often enough to cause wrong code to be generated. Tested on x86-64 Linux. gcc/ChangeLog: * tree-ssa-threadbackward.c (back_threader::maybe_register_path): Avoid threading circular paths.
Diffstat (limited to 'gcc/tree-sra.c')
0 files changed, 0 insertions, 0 deletions