This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/81365] [7/8 Regression] GCC miscompiles swap
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 09 Jul 2017 21:14:10 +0000
- Subject: [Bug tree-optimization/81365] [7/8 Regression] GCC miscompiles swap
- Auto-submitted: auto-generated
- References: <bug-81365-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81365
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |7.2
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
/* As we replicate the lhs on each incoming edge all
used SSA names have to be available there. */
if (! for_each_index (gimple_assign_lhs_ptr (use_stmt),
chk_uses,
get_immediate_dominator (CDI_DOMINATORS,
gimple_bb (phi))))
goto next;
This is supposed to check correctly but it does not ...