expensive.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110853
138bc75d-0d04-0410-961f-
82ee72b054a4
+2006-02-10 Diego Novillo <dnovillo@redhat.com>
+
+ * tree-inline.c (estimate_num_insns_1): Make OpenMP directives
+ expensive.
+
2006-02-10 Zdenek Dvorak <dvorakz@suse.cz>
* doc/invoke.texi (-floop-optimize2): Removed.
case LOOP_EXPR:
case PHI_NODE:
case WITH_SIZE_EXPR:
- case OMP_PARALLEL:
- case OMP_FOR:
- case OMP_SECTIONS:
- case OMP_SINGLE:
- case OMP_SECTION:
- case OMP_MASTER:
- case OMP_ORDERED:
- case OMP_CRITICAL:
- case OMP_ATOMIC:
case OMP_CLAUSE:
case OMP_RETURN_EXPR:
break;
*count += PARAM_VALUE (PARAM_INLINE_CALL_COST);
break;
}
+
+ case OMP_PARALLEL:
+ case OMP_FOR:
+ case OMP_SECTIONS:
+ case OMP_SINGLE:
+ case OMP_SECTION:
+ case OMP_MASTER:
+ case OMP_ORDERED:
+ case OMP_CRITICAL:
+ case OMP_ATOMIC:
+ /* OpenMP directives are generally very expensive. */
+ *count += 40;
+ break;
+
default:
gcc_unreachable ();
}