diff options
author | shenders <shenders@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-27 14:30:44 +0000 |
---|---|---|
committer | shenders <shenders@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-27 14:30:44 +0000 |
commit | 68b509aa5e78fb3d84c17a11b21a703de7a2bb45 (patch) | |
tree | 2beea161b94caff32fa25092bf6a11b00077ab5e /gcc/ifcvt.c | |
parent | fb6822c10aee1997e8d2bc1eff8d3284252b5c8f (diff) | |
download | gcc-68b509aa5e78fb3d84c17a11b21a703de7a2bb45.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184599 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r-- | gcc/ifcvt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 8d81c8913da..e4e13abe0aa 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; |