mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-15 22:51:38 +08:00
re PR tree-optimization/49361 (Huge 470.lbm regression)
2011-06-10 Richard Guenther <rguenther@suse.de> PR tree-optimization/49361 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0) when not already in gimple form. From-SVN: r174903
This commit is contained in:
parent
dae957ae75
commit
7871eee372
@ -1,3 +1,9 @@
|
||||
2011-06-10 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/49361
|
||||
* fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
|
||||
when not already in gimple form.
|
||||
|
||||
2011-06-10 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR bootstrap/49344
|
||||
|
@ -10519,7 +10519,8 @@ fold_binary_loc (location_t loc,
|
||||
}
|
||||
|
||||
/* Optimize x*x as pow(x,2.0), which is expanded as x*x. */
|
||||
if (optimize_function_for_speed_p (cfun)
|
||||
if (!in_gimple_form
|
||||
&& optimize_function_for_speed_p (cfun)
|
||||
&& operand_equal_p (arg0, arg1, 0))
|
||||
{
|
||||
tree powfn = mathfn_built_in (type, BUILT_IN_POW);
|
||||
|
Loading…
x
Reference in New Issue
Block a user