]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/111916 - SRA of BIT_FIELD_REF of constant pool entries
authorRichard Biener <rguenther@suse.de>
Mon, 23 Oct 2023 12:08:41 +0000 (14:08 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 23 Oct 2023 13:30:02 +0000 (15:30 +0200)
commit458db9b6149b2e9bef94ab76909eb914ed9f675a
treeb1fa2b03c466dcf30cf4ce04f3a49e493ed54fa0
parent00eb0812e6464307f9f971d2a743d720015e70cf
tree-optimization/111916 - SRA of BIT_FIELD_REF of constant pool entries

The following adjusts a leftover BIT_FIELD_REF special-casing to only
cover the cases general code doesn't handle.

PR tree-optimization/111916
* tree-sra.cc (sra_modify_assign): Do not lower all
BIT_FIELD_REF reads that are sra_handled_bf_read_p.

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