> My only worry would be asking for the length early in the RTL pipeline > may not be as accurate, but it's supposed to work, so if you're > comfortable with the end results, then OK. > Indeed, the length is not accurate, but the results seem slightly better than using COST_RTX. Using INSN_COSTS seems to me a better manageable way in controlling what combiner does. Anyhow, for ARC the instruction size is accurate quite late in the compilation process as it needs register and immediate value info :(
Thank you for you review, Claudiu