summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/loop-init.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/loop-init.c')
-rw-r--r--contrib/gcc/loop-init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/gcc/loop-init.c b/contrib/gcc/loop-init.c
index 00aa1be..d2c63404 100644
--- a/contrib/gcc/loop-init.c
+++ b/contrib/gcc/loop-init.c
@@ -43,6 +43,13 @@ loop_optimizer_init (unsigned flags)
struct loops *loops = XCNEW (struct loops);
edge e;
edge_iterator ei;
+ static bool first_time = true;
+
+ if (first_time)
+ {
+ first_time = false;
+ init_set_costs ();
+ }
/* Avoid annoying special cases of edges going to exit
block. */
OpenPOWER on IntegriCloud