|
|
|
|
|
by Omin
1933 days ago
|
|
restrict is so rarely used that clang has had open code generation bugs for years. Rust would like to use its non-aliasing guarantees to generate better code, but clang is unable to reliably generate correct code. So even if you manage to reason correctly around `restrict` in C, you can't count on the compiler to translate your code correctly. GCC also had bugs around restrict, but I don't know about their current status. |
|