diff options
author | Tom de Vries <tdevries@suse.de> | 2020-10-07 07:22:53 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2020-10-14 14:37:03 +0200 |
commit | 17d5739a6b103cdd3315f5d0e09fe8faa6620a03 (patch) | |
tree | b6f7b76c6622ee165aacb1e445fa7e54f14dd7a6 /gcc/cp/class.c | |
parent | 9068711f210e02a2b80f46813e47f338718c94dc (diff) | |
download | gcc-17d5739a6b103cdd3315f5d0e09fe8faa6620a03.zip gcc-17d5739a6b103cdd3315f5d0e09fe8faa6620a03.tar.gz gcc-17d5739a6b103cdd3315f5d0e09fe8faa6620a03.tar.bz2 |
[gimple] Move can_duplicate_bb_p to gimple_can_duplicate_bb_p
The function gimple_can_duplicate_bb_p currently always returns true.
The presence of can_duplicate_bb_p in tracer.c however suggests that
there are cases when bb's indeed cannot be duplicated.
Move the implementation of can_duplicate_bb_p to gimple_can_duplicate_bb_p.
Bootstrapped and reg-tested on x86_64-linux.
Build x86_64-linux with nvptx accelerator and tested libgomp.
No issues found.
As corner-case check, bootstrapped and reg-tested a patch that makes
gimple_can_duplicate_bb_p always return false, resulting in
PR97333 - "[gimple_can_duplicate_bb_p == false, tree-ssa-threadupdate]
ICE in duplicate_block, at cfghooks.c:1093".
gcc/ChangeLog:
2020-10-09 Tom de Vries <tdevries@suse.de>
* tracer.c (cached_can_duplicate_bb_p, analyze_bb): Use
can_duplicate_block_p.
(can_duplicate_insn_p, can_duplicate_bb_no_insn_iter_p)
(can_duplicate_bb_p): Move and merge ...
* tree-cfg.c (gimple_can_duplicate_bb_p): ... here.
Diffstat (limited to 'gcc/cp/class.c')
0 files changed, 0 insertions, 0 deletions