]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ifcvt.c (noce_get_condition): Check condition variable is not small_register_classes_...
authorStuart Henderson <shenders@gcc.gnu.org>
Mon, 27 Feb 2012 14:30:44 +0000 (14:30 +0000)
committerStuart Henderson <shenders@gcc.gnu.org>
Mon, 27 Feb 2012 14:30:44 +0000 (14:30 +0000)
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

gcc/ChangeLog
gcc/ifcvt.c

index 54e112815578d4247a541f1905579c80c93f0455..abc17a18057332ae283dbd2b599a97e053c3dc1b 100644 (file)
@@ -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.
index 8d81c8913da48f024c592475d88cada52a2e59e5..e4e13abe0aa29830de89c0e2a8269e0487eee342 100644 (file)
@@ -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;