summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-07-09 10:53:05 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-08-24 08:37:28 -0700
commit0beb152e6adb67f8f1245a09ce3f7222244a87b2 (patch)
tree9d2affb3335c733ad68143a9e1080508b52c752f
parente5e7b95e2ea3b4fa95c294eb998b7d1c7e4ccfeb (diff)
downloadgcc-hjl/tune/cost-sched.tar.gz
Add support for -mcost=iamcuhjl/tune/cost-sched
-rw-r--r--gcc/config/i386/i386-tune.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/i386/i386-tune.c b/gcc/config/i386/i386-tune.c
index 9cf702c0791..d4261a0a6a1 100644
--- a/gcc/config/i386/i386-tune.c
+++ b/gcc/config/i386/i386-tune.c
@@ -93,6 +93,8 @@ x86_tune_options (void)
ix86_cost = &atom_cost;
else if (strcmp (x86_cost_string, "slm") == 0)
ix86_cost = &slm_cost;
+ else if (strcmp (x86_cost_string, "iamcu") == 0)
+ ix86_cost = &iamcu_cost;
else if (strcmp (x86_cost_string, "generic") == 0)
ix86_cost = &generic_cost;
else if (strcmp (x86_cost_string, "core") == 0)