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

Yes; in fact memcpy/move are intrinsics in LLVM IR and are one of the more common targets of its idiom recognizer. Fun fact: many loop replacements and vectorizations depend on signed induction variable, so that the compiler doesn't have to prove it doesn't overflow. (Unsigned overflow is defined, signed overflow is UB and thus can be ignored)


If only you could specify overflow behavior and value range separately.




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

Search: