This is a fairly often used function, so it'd better be inlined.   But if you vouch for LLVM optimizer, I have no problem removing that.