by throwaway81523 · 5y ago · 0 comments
I think MIPS had a similar issue but eventually fixed it. Maybe RISCV can do similar.
Instructions that can trap -- but almost never do unless you have a program bug -- cause a large complication in pipelines, and especially in OoO implementations. Even a single-issue pipeline can run faster and be smaller without conditionally-trapping instructions, and as soon as you have even 2-wide execution it's just much better in every way to use explicit checks that use the same conditional branching facilities as the rest of the code.
The code size penalty is very minor in practice.