On 05/20/2011 11:12 AM, Richard Henderson wrote:
> On 05/20/2011 05:39 AM, Kirill Batuzov wrote:
>> +i = (op == INDEX_op_call) ?
>> +(args[0] >> 16) + (args[0] & 0x) + 3 :
>> +def->nb_args;
>> +while (i) {
>> +*gen_args = *
On 05/20/2011 05:39 AM, Kirill Batuzov wrote:
> +i = (op == INDEX_op_call) ?
> +(args[0] >> 16) + (args[0] & 0x) + 3 :
> +def->nb_args;
> +while (i) {
> +*gen_args = *args;
> +args++;
> +gen_
Added file tcg/optimize.c to hold TCG optimizations. Function tcg_optimize
is called from tcg_gen_code_common. It calls other functions performing
specific optimizations. Stub for constant folding was added.
Signed-off-by: Kirill Batuzov
---
Makefile.target |2 +-
tcg/optimize.c | 87