http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43655
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-01-16 20:21:44 UTC --- Author: jakub Date: Sun Jan 16 20:21:42 2011 New Revision: 168866 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168866 Log: Backport from mainline 2010-12-16 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/43655 * tree-ssa-ter.c (is_replaceable_p): Don't use gimple_references_memory_p for -O0, instead check for load by looking at rhs. * g++.dg/opt/pr43655.C: New test. Added: branches/gcc-4_5-branch/gcc/testsuite/g++.dg/opt/pr43655.C Modified: branches/gcc-4_5-branch/gcc/ChangeLog branches/gcc-4_5-branch/gcc/testsuite/ChangeLog branches/gcc-4_5-branch/gcc/tree-ssa-ter.c