[Bug tree-optimization/81365] [7/8 Regression] GCC miscompiles swap
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 17 09:11:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81365
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jul 17 09:10:23 2017
New Revision: 250261
URL: https://gcc.gnu.org/viewcvs?rev=250261&root=gcc&view=rev
Log:
PR tree-optimization/81365
* tree-ssa-phiprop.c (propagate_with_phi): When considering hoisting
aggregate moves onto bb predecessor edges, make sure there are no
loads that could alias the lhs in between the start of bb and the
loads from *phi.
* g++.dg/torture/pr81365.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr81365.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-phiprop.c
More information about the Gcc-bugs
mailing list