1. An apparatus comprising: a storage device to store compiler code; and a processor to execute the compiler code to determine legality of code replication for a plurality of inner loops of a loop nest prior to fusing two or more of the plurality of inner loops.