https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106210
Bug ID: 106210 Summary: missing shrink wrap for simple case Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- Target: aarch64-*-* x86_64-*-* Take: ``` int f(int); int advance(int dz) { int dz1; if (dz > 0) return (dz + dz) * dz; else return dz * f(dz); } ``` I would have expected this to be shrink wrapped but it is not.