Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That fancy algorithm is relevant to RISC-V (and in fact, most fixed-length ISAs) because loading an immediate into a register needs one or two instructions depending on the immediate; you surely want to elide a redundant LUI instruction if you can. Of course such redundant instructions don't harm by itself, but that equally applies to x86 as the algorithm is an optimization.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: