aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-29 09:35:44 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:05:15 -0700
commit12e60e8379aff9674549f0ad1e263a946c5ccc36 (patch)
tree490e8fafde38c392ba18ecfe1fc6b3b301a30c9c /memops.c
parentDon't add phi-nodes to the use/def lists, always add just the nodes (diff)
downloadsparse-12e60e8379aff9674549f0ad1e263a946c5ccc36.tar.gz
sparse-12e60e8379aff9674549f0ad1e263a946c5ccc36.tar.bz2
sparse-12e60e8379aff9674549f0ad1e263a946c5ccc36.zip
Associate pseudos with the symbol name whose value they got.
This is purely for debugging. It's only used to show what symbol a pseudo might be (and I stress "might", since CSE can and does screw it up) associated with. Also print out the def list for a basic block when verbose. It all makes it a bit easier to guess what's up.
Diffstat (limited to 'memops.c')
-rw-r--r--memops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/memops.c b/memops.c
index eac76cd..2781fad 100644
--- a/memops.c
+++ b/memops.c
@@ -64,6 +64,7 @@ no_dominance:
found_dominator:
br = delete_last_instruction(&parent->insns);
phi = alloc_phi(parent, one->target, one->size);
+ phi->ident = phi->ident ? : one->target->ident;
add_instruction(&parent->insns, br);
use_pseudo(phi, add_pseudo(dominators, phi));
} END_FOR_EACH_PTR(parent);