It's the same as D126181 for RISCV.
Oh my. I was pretty sure I used auto before, not sure how I managed to keep the wrong "bool" type (of IsRISCV64) in the submission... Fixed though.
In this particular case, if all "values used only once" were to be inlined into the use site, no local values would remain. You would be left with a giant return which probably won't help with readability. (And I already slightly tweaked the code compared to the RISCV version.)
So I don't feel very inclined to inline more...