]> gcc.gnu.org Git - gcc.git/commitdiff
ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x is not a scalar...
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Tue, 21 Jan 2003 02:03:14 +0000 (02:03 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Tue, 21 Jan 2003 02:03:14 +0000 (02:03 +0000)
* ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
is not a scalar int mode.

From-SVN: r61525

gcc/ChangeLog
gcc/ifcvt.c

index c0ed2d3d31bd19ad4e40153d6f25516fbc9487e8..ecbd2f951e0eb7c581f6e276cf65fe2e5c5ff51e 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
+       is not a scalar int mode.
+
 2003-01-20  Roger Sayle  <roger@eyesopen.com>
 
        * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
index 72dc2e12f6584d2f1500b5e46bb20c48c156246e..6b069af265d316471caf83af4e24c6247623e854 100644 (file)
@@ -647,8 +647,8 @@ noce_emit_store_flag (if_info, x, reversep, normalize)
       end_sequence ();
     }
 
-  /* Don't even try if the comparison operands are weird.  */
-  if (cond_complex)
+  /* Don't even try if the comparison operands or the mode of X are weird.  */
+  if (cond_complex || !SCALAR_INT_MODE_P (GET_MODE (x)))
     return NULL_RTX;
 
   return emit_store_flag (x, code, XEXP (cond, 0),
This page took 0.076071 seconds and 5 git commands to generate.