top | item 46014677

(no title)

Measter | 3 months ago

Back in 2015 when the Rust project first had to disable use of LLVM's `noalias` they found that performance dropped by up to 5% (depending on the program). The big caveat here is that it was miscompiling, so some of that apparent performance could have been incorrect.

Of course, that was also 10 years ago, so things may be different now. There'll have been interest from the Rust project for improving the optimisations `noalias` performs, as well as improvements from Clang to improve optimisations under C and C++'s aliasing model.

discuss

order

jcalvinowens|3 months ago

Thanks! I've heard a lot of anecdotes like this, but I've never found anyone presenting anything I can repeoduce myself.