OSDN Git Service

PR tree-optimization/51877
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Jan 2012 10:38:38 +0000 (10:38 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Jan 2012 10:38:38 +0000 (10:38 +0000)
commit87af2d007d4270d3bdec1de8bcd22fac1d191fcd
treef7c316bdd47a7c81826047b8a1a4be5dcd48454f
parent1b174c023e91ad50589d2a036a4db34a964eada9
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183237 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr51877.c [new file with mode: 0644]
gcc/tree-ssa-tail-merge.c