https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69045
Bug ID: 69045 Summary: missing optimization: forward constant propagation of regular expressions Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: shawn at churchofgit dot com Target Milestone: --- C++11 regular expression support can be optimized with two levels of forward constant propagation----regexp compilation, and regexp execution on constant strings. This would be a feature that could be useful in other languages as well. Would require RE2 or TRE to linked.