diff options
author | Richard Biener <rguenther@suse.de> | 2014-04-14 11:48:22 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2014-04-14 11:48:22 +0000 |
commit | 727987844249aafe00ffaf7a8030564c1f731607 (patch) | |
tree | f84d71d3dd776681297695f30004e73b68bd9c62 /gcc/tree-ssa-math-opts.c | |
parent | b15b59794635b6d6b3ebdda6bbc7f32d801118f6 (diff) | |
download | gcc-727987844249aafe00ffaf7a8030564c1f731607.zip gcc-727987844249aafe00ffaf7a8030564c1f731607.tar.gz gcc-727987844249aafe00ffaf7a8030564c1f731607.tar.bz2 |
tree-switch-conversion.c (lshift_cheap_p): Get speed_p as argument.
2014-04-14 Richard Biener <rguenther@suse.de>
* tree-switch-conversion.c (lshift_cheap_p): Get speed_p
as argument.
(expand_switch_using_bit_tests_p): Likewise.
(process_switch): Compute and pass on speed_p based on the
switch stmt.
* tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
optimize_bb_for_speed_p.
From-SVN: r209364
Diffstat (limited to 'gcc/tree-ssa-math-opts.c')
-rw-r--r-- | gcc/tree-ssa-math-opts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-math-opts.c b/gcc/tree-ssa-math-opts.c index 9ff857c..63aba8e 100644 --- a/gcc/tree-ssa-math-opts.c +++ b/gcc/tree-ssa-math-opts.c @@ -1162,7 +1162,7 @@ gimple_expand_builtin_pow (gimple_stmt_iterator *gsi, location_t loc, if (c_is_int && ((n >= -1 && n <= 2) || (flag_unsafe_math_optimizations - && optimize_insn_for_speed_p () + && optimize_bb_for_speed_p (gsi_bb (*gsi)) && powi_cost (n) <= POWI_MAX_MULTS))) return gimple_expand_builtin_powi (gsi, loc, arg0, n); |