OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable_0_2_0_rc2/] [or1ksim/] [cuc/] [bb.c] - Diff between revs 1042 and 1044

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1042 Rev 1044
Line 298... Line 298...
    if (f->bb[i].last < 0) continue;
    if (f->bb[i].last < 0) continue;
    ii = &insn[f->bb[i].last];
    ii = &insn[f->bb[i].last];
    /* Unconditional branch? */
    /* Unconditional branch? */
    if (ii->type & IT_BRANCH && ii->opt[1] & OPT_CONST) {
    if (ii->type & IT_BRANCH && ii->opt[1] & OPT_CONST) {
      change_insn_type (ii, II_NOP);
      change_insn_type (ii, II_NOP);
 
#if 0
      if (f->bb[i].next[1] == i + 1) f->bb[i].next[0] = f->bb[i].next[1];
      if (f->bb[i].next[1] == i + 1) f->bb[i].next[0] = f->bb[i].next[1];
 
#endif
      f->bb[i].next[1] = -1;
      f->bb[i].next[1] = -1;
    }
    }
  }
  }
  if (cuc_debug >= 3) print_cuc_bb (f, "AFTER_UNCOND_JUMP");
  if (cuc_debug >= 3) print_cuc_bb (f, "AFTER_UNCOND_JUMP");
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.