https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81346
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #41707|0 |1 is obsolete| | --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 41760 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41760&action=edit gcc8-pr81346-wip.patch Updated patch that does this, by moving the code from build_range_check into a helper function that can be used in two spots it is actually small. The remaining tasks are testsuite coverage and then match.pd optimizations for the build_range_check stuff where needed.