Hacker News new | ask | show | jobs
by hkalbasi 978 days ago
It seems it isn't yet: https://github.com/rust-lang/rust/issues/116744
1 comments

It does pass this information to LLVM, in the form of the `readonly` attribute. This seems to be a bug in LLVM that does not optimize the function propely, I don't know why.