]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/107686 - fix bitfield ref through vec_unpack optimization
authorRichard Biener <rguenther@suse.de>
Wed, 16 Nov 2022 14:27:13 +0000 (15:27 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 16 Nov 2022 16:07:39 +0000 (17:07 +0100)
commit246bbdaa5f536b7a199dda9860c473137f40d622
tree90dec2ce88b255a9e5bbfd65ebe68e353a977c85
parent8a5f3663f8de45b7030dfe7ce962783dc1a19885
tree-optimization/107686 - fix bitfield ref through vec_unpack optimization

The following propely restricts the bitfield access to integral types
when we look through VEC_UNPACK with the intent to emit a widening
conversion.

PR tree-optimization/107686
* tree-ssa-forwprop.cc (optimize_vector_load): Restrict
VEC_UNPACK support to integral typed bitfield refs.

* gcc.dg/pr107686.c: New testcase.
gcc/testsuite/gcc.dg/pr107686.c [new file with mode: 0644]
gcc/tree-ssa-forwprop.cc