This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] missing tree-codes in estimate_num_insns





Looks like the new alignment related tree-codes are missing from
estimate_num_insns_1;
Ok to add to mainline?
Bootstrapped and tested on powerpc-darwin.

thanks,

dorit


Changelog:

      * tree-inline.c (estimate_num_insns_1) added cases for
      ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, and REALIGN_LOAD_EXPR.

Patch:

*** tree-inline.c       Thu Jan 13 16:58:36 2005
--- tree-inline.c.dn    Thu Jan 13 16:58:17 2005
*************** estimate_num_insns_1 (tree *tp, int *wal
*** 1190,1195 ****
--- 1190,1197 ----
      case COMPONENT_REF:
      case BIT_FIELD_REF:
      case INDIRECT_REF:
+     case ALIGN_INDIRECT_REF:
+     case MISALIGNED_INDIRECT_REF:
      case ARRAY_REF:
      case ARRAY_RANGE_REF:
      case OBJ_TYPE_REF:
*************** estimate_num_insns_1 (tree *tp, int *wal
*** 1321,1326 ****
--- 1323,1330 ----
      case SWITCH_EXPR:

      case ASM_EXPR:
+
+     case REALIGN_LOAD_EXPR:

      case RESX_EXPR:
        *count += 1;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]