[RFC][gimple] Move can_duplicate_bb_p to gimple_can_duplicate_bb_p

Tom de Vries tdevries@suse.de
Wed Oct 14 10:05:47 GMT 2020


On 10/14/20 8:15 AM, Richard Biener wrote:
>> I've tried to address this by merging can_duplicate_stmt_p and
>> can_duplicate_last_stmt_p, and adding a default parameter.
>>
>> Better like this?
> Sorry for iterating again but since we now would appropriately
> handle things in the CFG hook there's no need for tracer.c to
> do this on its own via the _stmt calls.  So I suggest to
> remove the unifying of the stmt counting loop and use
> the can_duplicate_block_p CFG hook directly instead (but of course
> still cache its outcome).  That way we can simplify what is
> exported.

Np :) . Fully retested, OK for trunk?

Thanks,
- Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gimple-Move-can_duplicate_bb_p-to-gimple_can_duplicate_bb_p.patch
Type: text/x-patch
Size: 5948 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201014/08e846d5/attachment.bin>


More information about the Gcc-patches mailing list