https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83541
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andrew Macleod <amacl...@gcc.gnu.org>: https://gcc.gnu.org/g:75845d584f490c294d40908168e5721adc38145d commit r12-6529-g75845d584f490c294d40908168e5721adc38145d Author: Andrew MacLeod <amacl...@redhat.com> Date: Tue Jan 11 14:58:35 2022 -0500 Add testcase for PR 83541. Ranger now performs this optimzation. PR tree-optimization/83541 gcc/testsuite * g++.dg/pr83541.C: New.