diff options
author | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | 2003-01-21 02:03:14 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2003-01-21 02:03:14 +0000 |
commit | 475c825089f2734f8be45f0cb2b43095e8347249 (patch) | |
tree | c2d8f35d93600c67ee74d2ea7536c57caf67e8f1 | |
parent | dbaff908a0318f174bf6f3400138ac4927aef2fd (diff) | |
download | gcc-475c825089f2734f8be45f0cb2b43095e8347249.zip gcc-475c825089f2734f8be45f0cb2b43095e8347249.tar.gz gcc-475c825089f2734f8be45f0cb2b43095e8347249.tar.bz2 |
ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x is not a scalar int mode.
* ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
is not a scalar int mode.
From-SVN: r61525
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ifcvt.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c0ed2d3..ecbd2f9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 72dc2e1..6b069af 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -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), |