aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-28 20:38:23 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:05:14 -0700
commit89e78a3b4700b9c1cc204266772d4fe0647b1656 (patch)
tree7a5ad5083ae2a836566550d465462fe8946c0b8f /memops.c
parentOops. Don't try to CSE OP_SEL, at least not until we learn to (diff)
downloadsparse-89e78a3b4700b9c1cc204266772d4fe0647b1656.tar.gz
sparse-89e78a3b4700b9c1cc204266772d4fe0647b1656.tar.bz2
sparse-89e78a3b4700b9c1cc204266772d4fe0647b1656.zip
Start using instruction sizes properly.
We should drop symbol types by now, and base things on just raw sizes. Anything else just doesn't work from a CSE standpoint. Some things may care about actual types later, notably the type- based alias analysis. Those types still exist in the cast nodes. Also, make the printout be more readable.
Diffstat (limited to 'memops.c')
-rw-r--r--memops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/memops.c b/memops.c
index 0fc85e5..eac76cd 100644
--- a/memops.c
+++ b/memops.c
@@ -63,7 +63,7 @@ no_dominance:
found_dominator:
br = delete_last_instruction(&parent->insns);
- phi = alloc_phi(parent, one->target);
+ phi = alloc_phi(parent, one->target, one->size);
add_instruction(&parent->insns, br);
use_pseudo(phi, add_pseudo(dominators, phi));
} END_FOR_EACH_PTR(parent);