[PATCH 3/7] kds: rename kill_dead_stores() to kill_dead_stores_bb()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 flow.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/flow.c b/flow.c
index 2732b922d..0dab7ff2d 100644
--- a/flow.c
+++ b/flow.c
@@ -565,7 +565,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;
@@ -603,7 +603,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);
 }
 
@@ -753,7 +753,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);
 		}
 	}
-- 
2.16.2

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux