https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92689
Bug ID: 92689 Summary: Improve stmt_may_clobber_ref_p_1 on constant memory reference Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: fxue at os dot amperecomputing.com Target Milestone: --- If ao_ref represents a constant data, stmt_may_clobber_ref_p_1() and call_may_clobber_ref_p() can return false. But not sure there is any subtlety behind it, which I missed.