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 /gcc/ifcvt.c | |
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
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r-- | gcc/ifcvt.c | 4 |
1 files changed, 2 insertions, 2 deletions
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), |