aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-dom.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-12-13 15:43:13 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-12-13 15:43:13 +0000
commit6e38fea3e4ef087b050ba2739ca26ae92b91e2ff (patch)
tree61dd0f7809ea76fb84eecb8f232e329e195ff8f2 /gcc/tree-ssa-dom.c
parent098b96ab3d4a27ae7123d57f9b4aea11d81a0ba5 (diff)
downloadgcc-6e38fea3e4ef087b050ba2739ca26ae92b91e2ff.zip
gcc-6e38fea3e4ef087b050ba2739ca26ae92b91e2ff.tar.gz
gcc-6e38fea3e4ef087b050ba2739ca26ae92b91e2ff.tar.bz2
tree-ssa-dom.c (record_equivalences_from_phis): Add a comment.
* tree-ssa-dom.c (record_equivalences_from_phis): Add a comment. From-SVN: r92091
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r--gcc/tree-ssa-dom.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c
index def20d6..5c60979 100644
--- a/gcc/tree-ssa-dom.c
+++ b/gcc/tree-ssa-dom.c
@@ -1177,7 +1177,9 @@ record_equivalences_from_phis (basic_block bb)
{
tree t = PHI_ARG_DEF (phi, i);
- /* Ignore alternatives which are the same as our LHS. */
+ /* Ignore alternatives which are the same as our LHS. Since
+ LHS is a PHI_RESULT, it is known to be a SSA_NAME, so we
+ can simply compare pointers. */
if (lhs == t)
continue;