The expression(args[i] < 0) always returns false (#1207)
* Update optimize.c typedef uint64_t tcg_target_ulong; typedef tcg_target_ulong TCGArg; TCGArg *args The expression(args[i] < 0) always returns false * Update tcg.c typedef uint64_t tcg_target_ulong; typedef tcg_target_ulong TCGArg; TCGArg *args The expression(args[i] < 0) always returns false
This commit is contained in:
parent
d69ebfa55c
commit
e54eea00ec
@ -1370,7 +1370,7 @@ static TCGArg *tcg_constant_folding(TCGContext *s, uint16_t *tcg_opc_ptr,
|
||||
} else {
|
||||
do_reset_output:
|
||||
for (i = 0; i < nb_oargs; i++) {
|
||||
if (args[i] < 0 || args[i] >= TCG_MAX_TEMPS) {
|
||||
if (args[i] >= TCG_MAX_TEMPS) {
|
||||
continue;
|
||||
}
|
||||
reset_temp(s, args[i]);
|
||||
|
@ -1719,7 +1719,7 @@ static void tcg_liveness_analysis(TCGContext *s)
|
||||
implies side effects */
|
||||
if (!(def->flags & TCG_OPF_SIDE_EFFECTS) && nb_oargs != 0) {
|
||||
for(i = 0; i < nb_oargs; i++) {
|
||||
if (args[i] < 0 || args[i] >= TCG_MAX_TEMPS) {
|
||||
if (args[i] >= TCG_MAX_TEMPS) {
|
||||
continue;
|
||||
}
|
||||
arg = args[i];
|
||||
|
Loading…
Reference in New Issue
Block a user