From: Bernd Schmidt Date: Sat, 10 Apr 2010 12:28:25 +0000 (+0000) Subject: ira-costs.c (record_reg_classes): Ignore alternatives that are not enabled. X-Git-Tag: releases/gcc-4.6.0~7968 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=979740a0897ac0a74dcd1136447f7118de4f3839;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 74c2c327cf87..d6353e85a38f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-04-10 Bernd Schmidt + + * ira-costs.c (record_reg_classes): Ignore alternatives that are + not enabled. + 2010-04-09 Uros Bizjak PR target/43707 diff --git a/gcc/ira-costs.c b/gcc/ira-costs.c index 9e11219ce010..76aadff0772d 100644 --- a/gcc/ira-costs.c +++ b/gcc/ira-costs.c @@ -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;