https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106842
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The IR difference comes from PRE. In the case where the warning happens: find_duplicates: <bb 12> duplicate of <bb 23> find_duplicates: <bb 14> duplicate of <bb 18> find_duplicates: <bb 16> duplicate of <bb 20> vs where it does not happen: find_duplicates: <bb 15> duplicate of <bb 20> find_duplicates: <bb 13> duplicate of <bb 17>