OSDN Git Service

* ira-costs.c (record_reg_classes): Ignore alternatives that are
[pf3gnuchains/gcc-fork.git] / gcc / ira-costs.c
index 9e11219..76aadff 100644 (file)
@@ -224,6 +224,14 @@ record_reg_classes (int n_alts, int n_ops, rtx *ops,
       int alt_fail = 0;
       int alt_cost = 0, op_cost_add;
 
+      if (!recog_data.alternative_enabled_p[alt])
+       {
+         for (i = 0; i < recog_data.n_operands; i++)
+           constraints[i] = skip_alternative (constraints[i]);
+
+         continue;
+       }
+
       for (i = 0; i < n_ops; i++)
        {
          unsigned char c;