diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-03-18 02:55:37 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-06-30 23:29:28 +0200 |
| commit | d4623a914bbee7dc749e51f5702fcbee2599d802 (patch) | |
| tree | 556bf9ef005532f2ab009ff195cbad58cbf8a001 | |
| parent | 62ec136956986899ec11c649c94fc8905bc25590 (diff) | |
| download | sparse-dev-d4623a914bbee7dc749e51f5702fcbee2599d802.tar.gz | |
kds: rename kill_dead_stores() to kill_dead_stores_bb()
This name beter reflect the function which work on a single BB.
But the true reason for this change is to be able to reuse the
name kill_dead_stores() for a external interface.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
| -rw-r--r-- | flow.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -561,7 +561,7 @@ found: // * if we reach another store or load done via non-symbol access // (so done via some address calculation) -> we have to stop // If we reach the top of the BB we can recurse into the parents BBs. -static void kill_dead_stores(pseudo_t pseudo, unsigned long generation, struct basic_block *bb, int local) +static void kill_dead_stores_bb(pseudo_t pseudo, unsigned long generation, struct basic_block *bb, int local) { struct instruction *insn; struct basic_block *parent; @@ -599,7 +599,7 @@ static void kill_dead_stores(pseudo_t pseudo, unsigned long generation, struct b if (child && child != bb) return; } END_FOR_EACH_PTR(child); - kill_dead_stores(pseudo, generation, parent, local); + kill_dead_stores_bb(pseudo, generation, parent, local); } END_FOR_EACH_PTR(parent); } @@ -749,7 +749,7 @@ external_visibility: struct basic_block *bb; FOR_EACH_PTR(ep->bbs, bb) { if (!bb->children) - kill_dead_stores(pseudo, ++bb_generation, bb, !mod); + kill_dead_stores_bb(pseudo, ++bb_generation, bb, !mod); } END_FOR_EACH_PTR(bb); } } |
