re PR tree-optimization/63586 (x+x+x+x -> 4*x in gimple)
authorKugan Vivekanandarajah <kuganv@linaro.org>
Wed, 18 May 2016 00:58:45 +0000 (00:58 +0000)
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>
Wed, 18 May 2016 00:58:45 +0000 (00:58 +0000)
commitdf8b0a111998b29f47616001251333ce36984353
tree644d67cb34b48f629c66ca40fc809c762d0db77b
parent9b856a01882489b0a9b32700da4ca88d3fe3764f
re PR tree-optimization/63586 (x+x+x+x -> 4*x in gimple)

gcc/testsuite/ChangeLog:

2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>

PR middle-end/63586
* gcc.dg/tree-ssa/pr63586-2.c: New test.
* gcc.dg/tree-ssa/pr63586.c: New test.
* gcc.dg/tree-ssa/reassoc-14.c: Adjust multiplication count.

gcc/ChangeLog:

2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>

PR middle-end/63586
* tree-ssa-reassoc.c (transform_add_to_multiply): New.
(reassociate_bb): Call transform_add_to_multiply.

From-SVN: r236356
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/reassoc-14.c
gcc/tree-ssa-reassoc.c