From daf4e94043717bc31e1bfc328f738cb979b748df Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Sat, 1 Jun 2013 10:39:59 +0200 Subject: [PATCH] Partially reverted: 2013-05-31 Tobias Burnus 2013-06-01 Tobias Burnus Partially reverted: 2013-05-31 Tobias Burnus PR middle-end/57073 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up. From-SVN: r199575 --- gcc/ChangeLog | 9 +++++++++ gcc/tree-ssa-math-opts.c | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 39f24a65819..cf1d13d4098 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2013-06-01 Tobias Burnus + + Partially reverted: + 2013-05-31 Tobias Burnus + + PR middle-end/57073 + * tree-ssa-math-opts.c (execute_cse_sincos): Move check + further up. + 2013-05-31 Dinar Temirbulatov PR rtl-optimization/57268 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); } -- 2.30.2