mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-30 14:07:00 +00:00
tcg/optimize: rename tcg_constant_folding
The tcg_constant_folding folding ends up doing all the optimizations (which is a good thing to avoid looping on all ops multiple time), so make it clear and just rename it tcg_optimize. Backports commit 36e60ef6ac5d8a262d0fbeedfdb2b588514cb1ea from qemu
This commit is contained in:
parent
7b0055d742
commit
42dd2addbe
|
@ -577,7 +577,7 @@ static bool swap_commutative2(TCGContext *s, TCGArg *p1, TCGArg *p2)
|
|||
}
|
||||
|
||||
/* Propagate constants and copies, fold constant expressions. */
|
||||
static void tcg_constant_folding(TCGContext *s)
|
||||
void tcg_optimize(TCGContext *s)
|
||||
{
|
||||
struct tcg_temp_info *temps = s->temps2;
|
||||
int oi, oi_next, nb_temps, nb_globals;
|
||||
|
@ -1332,8 +1332,3 @@ static void tcg_constant_folding(TCGContext *s)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
void tcg_optimize(TCGContext *s)
|
||||
{
|
||||
tcg_constant_folding(s);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue