Commit 979740a0 by Bernd Schmidt Committed by Bernd Schmidt

ira-costs.c (record_reg_classes): Ignore alternatives that are not enabled.

	* ira-costs.c (record_reg_classes): Ignore alternatives that are
	not enabled.

From-SVN: r158186
parent 93c02eae
2010-04-10 Bernd Schmidt <bernd.schmidt@codesourcery.com>
* ira-costs.c (record_reg_classes): Ignore alternatives that are
not enabled.
2010-04-09 Uros Bizjak <ubizjak@gmail.com> 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
PR target/43707 PR target/43707
......
...@@ -224,6 +224,14 @@ record_reg_classes (int n_alts, int n_ops, rtx *ops, ...@@ -224,6 +224,14 @@ record_reg_classes (int n_alts, int n_ops, rtx *ops,
int alt_fail = 0; int alt_fail = 0;
int alt_cost = 0, op_cost_add; 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++) for (i = 0; i < n_ops; i++)
{ {
unsigned char c; unsigned char c;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment