diff options
author | Stuart Henderson <shenders@gcc.gnu.org> | 2012-02-27 14:30:44 +0000 |
---|---|---|
committer | Stuart Henderson <shenders@gcc.gnu.org> | 2012-02-27 14:30:44 +0000 |
commit | 2662a82152143f876bdd7bab4c0e0ffddf942093 (patch) | |
tree | 2beea161b94caff32fa25092bf6a11b00077ab5e | |
parent | cc2de92d5a4fbc66cbcfd1c9187c4ebecc4f46b3 (diff) | |
download | gcc-2662a82152143f876bdd7bab4c0e0ffddf942093.zip gcc-2662a82152143f876bdd7bab4c0e0ffddf942093.tar.gz gcc-2662a82152143f876bdd7bab4c0e0ffddf942093.tar.bz2 |
ifcvt.c (noce_get_condition): Check condition variable is not small_register_classes_for_mode_p before accepting.
2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
* ifcvt.c (noce_get_condition): Check condition variable is not
small_register_classes_for_mode_p before accepting.
From-SVN: r184599
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ifcvt.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 54e1128..abc17a1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-02-27 Stuart Henderson <shenders@gcc.gnu.org> + + * ifcvt.c (noce_get_condition): Check condition variable is not + small_register_classes_for_mode_p before accepting. + 2012-02-27 Uros Bizjak <ubizjak@gmail.com> * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints. diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 8d81c89..e4e13ab 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -2295,7 +2295,9 @@ noce_get_condition (rtx jump, rtx *earliest, bool then_else_reversed) cond = XEXP (SET_SRC (set), 0); tmp = XEXP (cond, 0); - if (REG_P (tmp) && GET_MODE_CLASS (GET_MODE (tmp)) == MODE_INT) + if (REG_P (tmp) && GET_MODE_CLASS (GET_MODE (tmp)) == MODE_INT + && (GET_MODE (tmp) != BImode + || !targetm.small_register_classes_for_mode_p (BImode))) { *earliest = jump; |