Energy Efficient Instruction-set Extension Considering Inline Expansion