Problem is, there are a lot of RISC-V instruction way longer than that (like th.vslide1down.vx) so hashing is going to be slow.
This last fact might actually support the current model, as it grows linearly-ish in the size of the instruction, instead of being constant like hash.
It is not part of RISC-V, nor supported by any CPUs outside of that vendors' own.