http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56294



Jakub Jelinek <jakub at gcc dot gnu.org> changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

                 CC|                            |jakub at gcc dot gnu.org



--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-18 
12:15:26 UTC ---

More reduced testcase for -O2 -fno-ipa-sra -fcompare-debug:

struct comp_cost { int cost; unsigned complexity; };

struct cost_pair { struct iv_cand *cand; };

struct iv_use { unsigned n_map_members; cost_pair *cost_map; };

struct iv_cand { unsigned id; };



void

bar (comp_cost, comp_cost)

{

}



void

foo (iv_use *use, iv_cand *cand)

{

  unsigned i, s = cand->id & (use->n_map_members - 1);

  for (i = 0; i < s; i++)

    if (use->cost_map[i].cand)

      goto found;

found:

  use->cost_map[i].cand = cand;

  comp_cost elim_cost, express_cost, bound_cost;

  bar (elim_cost, express_cost);

}

Reply via email to