http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51877
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-17 10:38:43 UTC --- Author: jakub Date: Tue Jan 17 10:38:38 2012 New Revision: 183237 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183237 Log: PR tree-optimization/51877 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever call arguments and fndecls compare equal, instead return false if they don't. Return true only if lhs1 and lhs2 are either both NULL, or both SSA_NAMEs that are valueized the same, or they satisfy operand_equal_p. * gcc.c-torture/execute/pr51877.c: New test. Added: trunk/gcc/testsuite/gcc.c-torture/execute/pr51877.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-tail-merge.c