Hacker News new | ask | show | jobs
by sapiogram 985 days ago
Thanks! Do you know if the Rust compiler is able to pass this information to LLVM somehow?
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.