On 10/10/2012 12:42 AM, Aurelien Jarno wrote: >> > - constant propagation using constraints. This would let tcg-i386 use >> > effectively the mov $imm,(addr) instruction for spills of known-constant >> > values. > This is indeed something quite frustrating and even more when the > same immediate value is loaded multiple time. One way to do that would > be to provide an optional tcg_out_st_immediate().
I think it should be possible to "simulate" a tcg opcode for this, without having to have a specific entry point for it. We've already got all the information we need from the backend in the form of constraints... r~
