diff options
author | Andre Vieira <andre.simoesdiasvieira@arm.com> | 2023-10-20 17:02:32 +0100 |
---|---|---|
committer | Andre Vieira <andre.simoesdiasvieira@arm.com> | 2023-10-20 17:02:32 +0100 |
commit | 24cf1f600b8ad34c68a51f48884e72d01f729893 (patch) | |
tree | 59debe52a843fb527c47472f70d82f94924fb4ba /gcc/rust/backend | |
parent | c29d55234e3577021b7dabb623e69732fb1407ce (diff) | |
download | gcc-24cf1f600b8ad34c68a51f48884e72d01f729893.zip gcc-24cf1f600b8ad34c68a51f48884e72d01f729893.tar.gz gcc-24cf1f600b8ad34c68a51f48884e72d01f729893.tar.bz2 |
ifcvt: Don't lower bitfields with non-constant offsets [PR 111882]
This patch stops lowering of bitfields by ifcvt when they have non-constant
offsets as we are not likely to be able to do anything useful with those during
vectorization. That also fixes the issue reported in PR 111882, which was
being caused by an offset with a side-effect being lowered, but constants have
no side-effects so we will no longer run into that problem.
gcc/ChangeLog:
PR tree-optimization/111882
* tree-if-conv.cc (get_bitfield_rep): Return NULL_TREE for bitfields
with non-constant offsets.
gcc/testsuite/ChangeLog:
* gcc.dg/vect/pr111882.c: New test.
Diffstat (limited to 'gcc/rust/backend')
0 files changed, 0 insertions, 0 deletions