]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/102318 - reduction epilogue re-use
authorRichard Biener <rguenther@suse.de>
Wed, 15 Sep 2021 08:20:34 +0000 (10:20 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 15 Sep 2021 09:13:21 +0000 (11:13 +0200)
commitb6d8fa66e1bf08756cb4134735b5034e171f49d1
treea3c40c775922f33cc28c3dafb3ffacb4b3fee4f7
parentcc1e28878a228b6c4a0872e56d97ac88971b7725
tree-optimization/102318 - reduction epilogue re-use

This refines the fix for PR102226 to do the mode conversion
from V2DI to VNx2DI separately from the sign-conversion, retaining
the signedness of the saved accumulator as before the original fix.

2021-09-15  Richard Biener <rguenther@suse.de>

PR tree-optimization/102318
* tree-vect-loop.c (vect_transform_cycle_phi): Revert
previous change and do the mode conversion separately from
the sign conversion.

* gcc.dg/vect/pr102318.c: New testcase.
gcc/testsuite/gcc.dg/vect/pr102318.c [new file with mode: 0644]
gcc/tree-vect-loop.c