tcg: Reindent parts of liveness_pass_1
There are two blocks of the form if (foo) { stuff1; goto bar; } else { baz: stuff2; } which have unnecessary and confusing indentation. Remove the else and unindent stuff2. Reviewed-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
1894f69a61
commit
152c35aab4
11
tcg/tcg.c
11
tcg/tcg.c
@ -2436,7 +2436,7 @@ static void liveness_pass_1(TCGContext *s)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
goto do_remove;
|
goto do_remove;
|
||||||
} else {
|
}
|
||||||
do_not_remove_call:
|
do_not_remove_call:
|
||||||
|
|
||||||
/* output args are dead */
|
/* output args are dead */
|
||||||
@ -2479,7 +2479,6 @@ static void liveness_pass_1(TCGContext *s)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case INDEX_op_insn_start:
|
case INDEX_op_insn_start:
|
||||||
break;
|
break;
|
||||||
@ -2580,9 +2579,14 @@ static void liveness_pass_1(TCGContext *s)
|
|||||||
goto do_not_remove;
|
goto do_not_remove;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
goto do_remove;
|
||||||
|
}
|
||||||
|
goto do_not_remove;
|
||||||
|
|
||||||
do_remove:
|
do_remove:
|
||||||
tcg_op_remove(s, op);
|
tcg_op_remove(s, op);
|
||||||
} else {
|
break;
|
||||||
|
|
||||||
do_not_remove:
|
do_not_remove:
|
||||||
/* output args are dead */
|
/* output args are dead */
|
||||||
for (i = 0; i < nb_oargs; i++) {
|
for (i = 0; i < nb_oargs; i++) {
|
||||||
@ -2617,7 +2621,6 @@ static void liveness_pass_1(TCGContext *s)
|
|||||||
for (i = nb_oargs; i < nb_oargs + nb_iargs; i++) {
|
for (i = nb_oargs; i < nb_oargs + nb_iargs; i++) {
|
||||||
arg_temp(op->args[i])->state &= ~TS_DEAD;
|
arg_temp(op->args[i])->state &= ~TS_DEAD;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
op->life = arg_life;
|
op->life = arg_life;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user