]> git.ipfire.org Git - thirdparty/gcc.git/commit
Do not release state location until after path registry.
authorAldy Hernandez <aldyh@redhat.com>
Fri, 3 Sep 2021 08:11:28 +0000 (10:11 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Fri, 3 Sep 2021 13:42:22 +0000 (15:42 +0200)
commitb237eb9dfdada49d3f2bdfa98aa4a0b67fc1829d
tree881b26fd2ca68e63c748be2118ac727fd3bc84fb
parent9fa5ba4c56ef558bc740e56654622d70f4166e48
Do not release state location until after path registry.

We are popping state and then calling the registry code.  This causes
the registry to have incorrect information.  This isn't visible in
current trunk, but will be an issue when I submit further enhancements
to the threading code.  However, it is a cleanup on its own so I am
pushing it now.

Tested on x86-64 Linux.

gcc/ChangeLog:

* tree-ssa-threadedge.c (jump_threader::thread_across_edge):
Move pop until after a thread is registered.
gcc/tree-ssa-threadedge.c