https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80158

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
#1  0x00000000019a81e7 in all_phi_incrs_profitable (c=0x2c907b0, 
    phi=0x7ffff6684400)
    at
/space/rguenther/src/svn/gcc-7-branch/gcc/gimple-ssa-strength-reduction.c:3298
3298          || !dominated_by_p (CDI_DOMINATORS, phi_bb, basis_bb))
(gdb) l
3293         using the basis here.  */
3294      basic_block basis_bb = gimple_bb (basis->cand_stmt);
3295      basic_block phi_bb = gimple_bb (phi);
3296
3297      if (phi_bb == basis_bb
3298          || !dominated_by_p (CDI_DOMINATORS, phi_bb, basis_bb))
3299        return false;
3300
3301      for (i = 0; i < gimple_phi_num_args (phi); i++)
3302        {
(gdb) p basis_bb
$4 = <basic_block 0x0>

basis->cand_stmt is not in any BB.  Reducing testcase...

Reply via email to