]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/121116 - avoid _BitInt for vector element init
authorRichard Biener <rguenther@suse.de>
Wed, 16 Jul 2025 12:07:48 +0000 (14:07 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 16 Jul 2025 13:34:16 +0000 (15:34 +0200)
commit39ba01fe70c77e70a00ed65a1e6bac8350479f4d
tree7e9f8ab6f4a944b5a60bbc21b167067b56d3c0df
parent7c3081960922d9bd3ea81a9f8ca6e00c23170a2b
tree-optimization/121116 - avoid _BitInt for vector element init

When having a _BitInt induction we should make sure to not create
the step vector elements as _BitInts but as vector element typed.

PR tree-optimization/121116
* tree-vect-loop.cc (vectorizable_induction): Use the
step vector element type for further processing.

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