tree-ssa-math-opts.c (convert_plusminus_to_widen): Call has_single_use () and not...
authorYufeng Zhang <yufeng.zhang@arm.com>
Fri, 25 Oct 2013 17:25:08 +0000 (17:25 +0000)
committerYufeng Zhang <yufeng@gcc.gnu.org>
Fri, 25 Oct 2013 17:25:08 +0000 (17:25 +0000)
commit42917d01c097938d626e4c9728455c7f5d822280
treeaccdc86c368a7cdb19555cc714cf66b2b7c88f27
parentb02ef56d8d792059f39bef1d9b853d9a2af0aa3b
tree-ssa-math-opts.c (convert_plusminus_to_widen): Call has_single_use () and not do the conversion if...

gcc/

* tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
has_single_use () and not do the conversion if has_single_use ()
returns false for the multiplication result.

gcc/testsuite/

* gcc.dg/wmul-1.c: New test.

From-SVN: r204072
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/wmul-1.c [new file with mode: 0644]
gcc/tree-ssa-math-opts.c