[ftracer] Factor out can_duplicate_bb_p
authorTom de Vries <tdevries@suse.de>
Sun, 4 Oct 2020 11:23:37 +0000 (13:23 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 6 Oct 2020 09:23:08 +0000 (11:23 +0200)
commit9d63e3ab40778a7dfd20605c8741becbb22b9014
treeb90e6ffb081010ee070d2d61d641ae2f87020dbc
parent9065c4adab0b1280f5707d53833d195d0d350fd2
[ftracer] Factor out can_duplicate_bb_p

Factor out can_duplicate_bb_p out of ignore_bb_p.

Also factor out can_duplicate_insn_p and can_duplicate_bb_no_insn_iter_p to
expose the parts of can_duplicate_bb_p that are per-bb and per-insn.

Bootstrapped and reg-tested on x86_64-linux.

gcc/ChangeLog:

2020-10-05  Tom de Vries  <tdevries@suse.de>

* tracer.c (can_duplicate_insn_p, can_duplicate_bb_no_insn_iter_p)
(can_duplicate_bb_p): New function, factored out of ...
(ignore_bb_p): ... here.
gcc/tracer.c