Maybe that is possible. But would it be simpler? Maybe it can be a part of the solution?
Why would you care? You can generate a lot of code in a microsecond.
> Or maybe this could be built into the CPU cache? We already have a 1000-plus opcode decoded instruction cache. Already certain 'idioms' are optimized at decode time. How impossible would it be to have an opcode optimizer that rewrites the instructions in the cache to use the widest vector instructions available?
Sorry, but I don't understand your question.