From 6dfe7d53c4f1976053252321bdfb4bc9d054941a Mon Sep 17 00:00:00 2001 From: burnus Date: Fri, 31 May 2013 10:18:40 +0000 Subject: 2013-05-31 Tobias Burnus 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@199529 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/tree-ssa-math-opts.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'gcc/tree-ssa-math-opts.c') diff --git a/gcc/tree-ssa-math-opts.c b/gcc/tree-ssa-math-opts.c index a15c4042867..b4de411b39d 100644 --- a/gcc/tree-ssa-math-opts.c +++ b/gcc/tree-ssa-math-opts.c @@ -1447,9 +1447,10 @@ execute_cse_sincos (void) arg1 = gimple_call_arg (stmt, 1); loc = gimple_location (stmt); - if (real_minus_onep (arg0) - && TREE_CODE (TREE_TYPE (arg1)) == INTEGER_TYPE - && !host_integerp (arg1,0)) + if (!host_integerp (arg1, 0)) + break; + + if (real_minus_onep (arg0)) { tree t0, t1, cond, one, minus_one; gimple stmt; @@ -1476,9 +1477,6 @@ 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); } -- cgit v1.2.1