Re: [PATCH] tree-sra: Do not create stores into const aggregates

2025-05-13 Thread Richard Biener
> Am 13.05.2025 um 23:24 schrieb Martin Jambor : > > Hi, > > this patch fixes (hopefully the) one remaining place where gimple SRA > was still creating a load into a const aggregates. It occurs when > there was a replacement for a load but that replacement is not type > compatible - typicall

[PATCH] tree-sra: Do not create stores into const aggregates

2025-05-13 Thread Martin Jambor
Hi, this patch fixes (hopefully the) one remaining place where gimple SRA was still creating a load into a const aggregates. It occurs when there was a replacement for a load but that replacement is not type compatible - typically because it was a single field structure. I have used testcases fr