diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-11-26 12:09:24 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:04:57 -0700 |
commit | 05f35ab2b4c7a464851090085cf13d39ef22e854 (patch) | |
tree | 67e3c3f1106fc7ac2ab7aca1994b28e6b8d416a8 /simplify.c | |
parent | Make the CSE "repeat" logic be more fine-grained than just (diff) | |
download | sparse-05f35ab2b4c7a464851090085cf13d39ef22e854.tar.gz sparse-05f35ab2b4c7a464851090085cf13d39ef22e854.tar.bz2 sparse-05f35ab2b4c7a464851090085cf13d39ef22e854.zip |
Clean up the tests for "pseudo has use list", since add/remove
has to agree on it or bad things happen.
Diffstat (limited to 'simplify.c')
-rw-r--r-- | simplify.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -148,7 +148,7 @@ static int clean_up_phi(struct instruction *insn) static inline void remove_usage(pseudo_t p, pseudo_t *usep) { - if (p && p->type != PSEUDO_VOID && p->type != PSEUDO_VAL) { + if (has_use_list(p)) { int deleted; deleted = delete_ptr_list_entry((struct ptr_list **)&p->users, usep); assert(deleted == 1); |