Fix mis-optimized identical submodule subtract, bug581.

This commit is contained in:
Wilson Snyder
2012-11-28 07:36:47 -05:00
parent 38b9fa7b93
commit 30f6c0e105
5 changed files with 302 additions and 0 deletions
+1
View File
@@ -416,6 +416,7 @@ private:
// If cleanup sameTree to be smarter, this can be restored.
//return node1p->sameTree(node2p);
return node1p->castVarRef()->varp() == node2p->castVarRef()->varp()
&& node1p->castVarRef()->varScopep() == node2p->castVarRef()->varScopep()
&& node1p->castVarRef()->lvalue() == node2p->castVarRef()->lvalue();
} else {
return false;