summaryrefslogtreecommitdiff
path: root/gcc/postreload.c
diff options
context:
space:
mode:
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2010-08-02 09:42:37 +0000
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2010-08-02 09:42:37 +0000
commit620047f0b2d7c6d6437024d77817bdfba7ddd86e (patch)
treef2ef83063262da0137c569e5097b293bafbb43b9 /gcc/postreload.c
parent5496c024920b851abff8c135cbfa6eeae9d9d607 (diff)
downloadgcc-620047f0b2d7c6d6437024d77817bdfba7ddd86e.tar.gz
* postreload.c (reload_cse_simplify_operands): Take attribute enabled
into account. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162812 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/postreload.c')
-rw-r--r--gcc/postreload.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/postreload.c b/gcc/postreload.c
index a0c7cc19a4b..a62569e4742 100644
--- a/gcc/postreload.c
+++ b/gcc/postreload.c
@@ -573,6 +573,7 @@ reload_cse_simplify_operands (rtx insn, rtx testreg)
alternative yet and the operand being replaced is not
a cheap CONST_INT. */
if (op_alt_regno[i][j] == -1
+ && recog_data.alternative_enabled_p[j]
&& reg_fits_class_p (testreg, rclass, 0, mode)
&& (!CONST_INT_P (recog_data.operand[i])
|| (rtx_cost (recog_data.operand[i], SET,