diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-06-01 08:39:59 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-06-01 08:39:59 +0000 |
commit | d48be9580800466923638c70a15b8082c4740510 (patch) | |
tree | 77f28614a0b5d14e35146187129974cde88177c5 /gcc/tree-ssa-math-opts.c | |
parent | b13a7b59d975b42026f403225cf7799d453a8a5e (diff) | |
download | gcc-d48be9580800466923638c70a15b8082c4740510.tar.gz |
2013-06-01 Tobias Burnus <burnus@net-b.de>
Partially reverted:
2013-05-31 Tobias Burnus <burnus@net-b.de>
PR middle-end/57073
* tree-ssa-math-opts.c (execute_cse_sincos): Move check
further up.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199575 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-math-opts.c')
-rw-r--r-- | gcc/tree-ssa-math-opts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-math-opts.c b/gcc/tree-ssa-math-opts.c index b4de411b39d..e9c32b3c8be 100644 --- a/gcc/tree-ssa-math-opts.c +++ b/gcc/tree-ssa-math-opts.c @@ -1447,9 +1447,6 @@ execute_cse_sincos (void) arg1 = gimple_call_arg (stmt, 1); loc = gimple_location (stmt); - if (!host_integerp (arg1, 0)) - break; - if (real_minus_onep (arg0)) { tree t0, t1, cond, one, minus_one; @@ -1477,6 +1474,9 @@ execute_cse_sincos (void) } else { + if (!host_integerp (arg1, 0)) + break; + n = TREE_INT_CST_LOW (arg1); result = gimple_expand_builtin_powi (&gsi, loc, arg0, n); } |