diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2021-09-03 10:09:41 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2021-09-03 17:19:53 +0200 |
commit | a3ff15afb4c697117aa8916c47b358045dbf0fe9 (patch) | |
tree | bf74977c01c4b01fb072e34978d515c261730650 /gcc/tree-ssa-threadbackward.c | |
parent | 5ec4990bc777dd191b86aee6156be3f60cf9de24 (diff) | |
download | gcc-a3ff15afb4c697117aa8916c47b358045dbf0fe9.zip gcc-a3ff15afb4c697117aa8916c47b358045dbf0fe9.tar.gz gcc-a3ff15afb4c697117aa8916c47b358045dbf0fe9.tar.bz2 |
Dump reason why threads are being cancelled and abstract code.
We are inconsistent on dumping out reasons why a thread was canceled.
This makes debugging jump threading problems harder because paths can be
canceled with no reason given. This patch abstracts out the thread
canceling code and adds a reason for every cancellation.
Tested on x86-64 Linux.
gcc/ChangeLog:
* tree-ssa-threadupdate.c (cancel_thread): New.
(jump_thread_path_registry::thread_block_1): Use cancel_thread.
(jump_thread_path_registry::mark_threaded_blocks): Same.
(jump_thread_path_registry::register_jump_thread): Same.
Diffstat (limited to 'gcc/tree-ssa-threadbackward.c')
0 files changed, 0 insertions, 0 deletions