diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-12-08 21:27:27 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:05:44 -0700 |
commit | 5f3baf5f3df4c7710631732cf34aad2869f5fd19 (patch) | |
tree | 89e5a57819bf2643ada58d89e1423a4799fda134 /liveness.c | |
parent | Fix liveness analysis. (diff) | |
download | sparse-5f3baf5f3df4c7710631732cf34aad2869f5fd19.tar.gz sparse-5f3baf5f3df4c7710631732cf34aad2869f5fd19.tar.bz2 sparse-5f3baf5f3df4c7710631732cf34aad2869f5fd19.zip |
Oops. When updatign the liveness calculation, I forgot to
update the code that moves "needs" information to the parent.
Now that we only add real needs to the needs list, this
is much simpler.
Diffstat (limited to 'liveness.c')
-rw-r--r-- | liveness.c | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -185,14 +185,12 @@ static void track_bb_liveness(struct basic_block *bb) pseudo_t needs; FOR_EACH_PTR(bb->needs, needs) { - if (!pseudo_in_list(bb->defines, needs)) { - struct basic_block *parent; - FOR_EACH_PTR(bb->parents, parent) { - if (!pseudo_in_list(parent->defines, needs)) { - add_pseudo_exclusive(&parent->needs, needs); - } - } END_FOR_EACH_PTR(parent); - } + struct basic_block *parent; + FOR_EACH_PTR(bb->parents, parent) { + if (!pseudo_in_list(parent->defines, needs)) { + add_pseudo_exclusive(&parent->needs, needs); + } + } END_FOR_EACH_PTR(parent); } END_FOR_EACH_PTR(needs); } |