“…A compromise between flexibility and performance, ASIPs are processors whose instruction sets can be extended with additional instructions, allowing the processor to be-at least partlycustomized for the running program in order to improve code quality. The task of discovering and deciding which instructions to add is commonly referred to as the instruction set extension (ISE) problem, and there exists plenty of research on how to solve this problem (see for example [11,20,31,32,41,47,52,57,78,185,198,259,260,266,353], and see [144] for a recent survey). However, although the ISE problem can be regarded as a generalization of the instruction selection problem-the main difference is that the pattern set is no longer fixed-the prevalent approach is to treat them separately.…”