[qfcc] Rename the kill alias functions

Having "visit" in the name felt redundant in the end.
This commit is contained in:
Bill Currie 2020-03-08 12:08:56 +09:00
parent c2ed6d41bd
commit b2faca16a7

View file

@ -579,7 +579,7 @@ flow_build_vars (function_t *func)
/** Add the tempop's spanned addresses to the kill set /** Add the tempop's spanned addresses to the kill set
*/ */
static int static int
flow_tempop_kill_aliases_visit (tempop_t *tempop, void *_kill) flow_tempop_kill_aliases (tempop_t *tempop, void *_kill)
{ {
set_t *kill = (set_t *) _kill; set_t *kill = (set_t *) _kill;
flowvar_t *var; flowvar_t *var;
@ -592,7 +592,7 @@ flow_tempop_kill_aliases_visit (tempop_t *tempop, void *_kill)
/** Add the def's spanned addresses to the kill set /** Add the def's spanned addresses to the kill set
*/ */
static int static int
flow_def_kill_aliases_visit (def_t *def, void *_kill) flow_def_kill_aliases (def_t *def, void *_kill)
{ {
set_t *kill = (set_t *) _kill; set_t *kill = (set_t *) _kill;
flowvar_t *var; flowvar_t *var;
@ -620,10 +620,9 @@ flow_kill_aliases (set_t *kill, flowvar_t *var, const set_t *uninit)
tmp = set_new (); tmp = set_new ();
// collect the kill sets from any aliases // collect the kill sets from any aliases
if (op->op_type == op_temp) { if (op->op_type == op_temp) {
tempop_visit_all (&op->o.tempop, 1, flow_tempop_kill_aliases_visit, tempop_visit_all (&op->o.tempop, 1, flow_tempop_kill_aliases, tmp);
tmp);
} else if (op->op_type == op_def) { } else if (op->op_type == op_def) {
def_visit_all (op->o.def, 1, flow_def_kill_aliases_visit, tmp); def_visit_all (op->o.def, 1, flow_def_kill_aliases, tmp);
} }
// don't allow aliases to kill definitions in the entry dummy block // don't allow aliases to kill definitions in the entry dummy block
set_difference (tmp, uninit); set_difference (tmp, uninit);