https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101541
Bug ID: 101541 Summary: Missing ABSU detection at gimple Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- While looking at PR 44608 and finding it was already fixed, I noticed instead we should produce ABSU at the gimple level but don't currently. Take: unsigned abssat2 (int x) { unsigned int y = x; if (x < 0) y = -y; return y; }