diff options
author | Tom de Vries <tdevries@suse.de> | 2020-10-04 12:01:34 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2020-10-06 11:23:09 +0200 |
commit | e6d995fddea8d5a6fb0a3bdeccf4191e652f6759 (patch) | |
tree | f5b012a8117b60accc44c3b213dc6cdb811896e5 /libiberty/simple-object-elf.c | |
parent | 9d63e3ab40778a7dfd20605c8741becbb22b9014 (diff) | |
download | gcc-e6d995fddea8d5a6fb0a3bdeccf4191e652f6759.zip gcc-e6d995fddea8d5a6fb0a3bdeccf4191e652f6759.tar.gz gcc-e6d995fddea8d5a6fb0a3bdeccf4191e652f6759.tar.bz2 |
[ftracer] Add caching of can_duplicate_bb_p
The fix "[omp, ftracer] Don't duplicate blocks in SIMT region" adds iteration
over insns in ignore_bb_p, which makes it more expensive.
Counteract this by piggybacking the computation of can_duplicate_bb_p onto
count_insns, which is called at the start of ftracer.
Bootstrapped and reg-tested on x86_64-linux.
gcc/ChangeLog:
2020-10-05 Tom de Vries <tdevries@suse.de>
* tracer.c (count_insns): Rename to ...
(analyze_bb): ... this.
(cache_can_duplicate_bb_p, cached_can_duplicate_bb_p): New function.
(ignore_bb_p): Use cached_can_duplicate_bb_p.
(tail_duplicate): Call cache_can_duplicate_bb_p.
Diffstat (limited to 'libiberty/simple-object-elf.c')
0 files changed, 0 insertions, 0 deletions