diff options
author | Jakub Jelinek <jakub@redhat.com> | 2024-07-23 10:50:29 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2024-07-23 10:51:32 +0200 |
commit | b9cefd67a2a464a3c9413e6b3f28e7dc7a9ef162 (patch) | |
tree | 20cca0ca8543affa89b479e18e04b96ecc8d9f13 /gcc/dwarf2codeview.h | |
parent | 58756c9f5507e5db0eaddcbaaa2de7f39c34b5d0 (diff) | |
download | gcc-b9cefd67a2a464a3c9413e6b3f28e7dc7a9ef162.zip gcc-b9cefd67a2a464a3c9413e6b3f28e7dc7a9ef162.tar.gz gcc-b9cefd67a2a464a3c9413e6b3f28e7dc7a9ef162.tar.bz2 |
ssa: Fix up maybe_rewrite_mem_ref_base complex type handling [PR116034]
The folding into REALPART_EXPR is correct, used only when the mem_offset
is zero, but for IMAGPART_EXPR it didn't check the exact offset value (just
that it is not 0).
The following patch fixes that by using IMAGPART_EXPR only if the offset
is right and using BITFIELD_REF or whatever else otherwise.
2024-07-23 Jakub Jelinek <jakub@redhat.com>
Andrew Pinski <quic_apinski@quicinc.com>
PR tree-optimization/116034
* tree-ssa.cc (maybe_rewrite_mem_ref_base): Only use IMAGPART_EXPR
if MEM_REF offset is equal to element type size.
* gcc.dg/pr116034.c: New test.
Diffstat (limited to 'gcc/dwarf2codeview.h')
0 files changed, 0 insertions, 0 deletions