[Bug ipa/113422] Missed optimizations in the presence of pointer chains
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113422 Andrew Pinski changed: What|Removed |Added Component|tree-optimization |ipa Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed||2024-01-16 Severity|normal |enhancement --- Comment #1 from Andrew Pinski --- Yes gcc static read only pass does not cycle . So it only able to remove currently one level of indirection.
[Bug ipa/113422] Missed optimizations in the presence of pointer chains
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113422 --- Comment #2 from Jan Hubicka --- Cycling read-only var discovery would be quite expensive, since you need to interleave it with early opts each round. I wonder how llvm handles this? I think there is more hope with IPA-PTA getting scalable version at -O2 and possibly being able to solve this.