Re: [PATCH][tree-ssa-loop-ch] Add missing NULL test for dump_file

2020-10-06 Thread Richard Biener
On Wed, 7 Oct 2020, Tom de Vries wrote: > Hi, > > If we change gimple_can_duplicate_bb_p to return false instead of true, we run > into a segfault in ch_base::copy_headers due to using dump_file while it's > NULL: > ... > if (!gimple_duplicate_sese_region (entry, exit, bbs, n_bbs, copied_bb

[PATCH][tree-ssa-loop-ch] Add missing NULL test for dump_file

2020-10-06 Thread Tom de Vries
Hi, If we change gimple_can_duplicate_bb_p to return false instead of true, we run into a segfault in ch_base::copy_headers due to using dump_file while it's NULL: ... if (!gimple_duplicate_sese_region (entry, exit, bbs, n_bbs, copied_bbs, true))