When local->pure_const_state in ipa-pure-const.c/check_decl has been set to IPA_NEITHER, it cannot be modified in the rest of the function, so it is possible to return immediately. This should bring a tiny performance improvement while not impairing the code readability.
Patch follows, against SVN tree. -- Summary: Small performance improvement Product: gcc Version: unknown Status: UNCONFIRMED Severity: trivial Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sam at rfc1149 dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33875