* tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
bases are dereferenced.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183522
138bc75d-0d04-0410-961f-
82ee72b054a4
+2012-01-25 Richard Guenther <rguenther@suse.de>
+
+ * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
+ bases are dereferenced.
+
2012-01-25 Andrey Belevantsev <abel@ispras.ru>
PR rtl-optimization/48374
tem1.type = TREE_TYPE (tem1.op0);
tem1.opcode = TREE_CODE (tem1.op0);
vro1 = &tem1;
+ deref1 = false;
}
if (deref2 && vro2->opcode == ADDR_EXPR)
{
tem2.type = TREE_TYPE (tem2.op0);
tem2.opcode = TREE_CODE (tem2.op0);
vro2 = &tem2;
+ deref2 = false;
}
+ if (deref1 != deref2)
+ return false;
if (!vn_reference_op_eq (vro1, vro2))
return false;
++j;