]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/111614 - missing convert in undistribute_bitref_for_vector
authorRichard Biener <rguenther@suse.de>
Thu, 28 Sep 2023 07:41:30 +0000 (09:41 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 27 Nov 2023 11:51:54 +0000 (12:51 +0100)
commite4b5aca4433bd1c6de4ea2585700770bba8eb0d7
tree9510380828e8caba204b3bb458189416918d58bf
parentbd75062cc3fc4abd19c37fae164d9764ffab2407
tree-optimization/111614 - missing convert in undistribute_bitref_for_vector

The following adjusts a flawed guard for converting the first vector
of the sum we create in undistribute_bitref_for_vector.

PR tree-optimization/111614
* tree-ssa-reassoc.cc (undistribute_bitref_for_vector): Properly
convert the first vector when required.

* gcc.dg/torture/pr111614.c: New testcase.

(cherry picked from commit 88d79b9b03eccf39921d13c2cbd1acc50aeda126)
gcc/testsuite/gcc.dg/torture/pr111614.c [new file with mode: 0644]
gcc/tree-ssa-reassoc.cc