-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
T-compilerRelevant to the compiler team, which will review and decide on the RFC.Relevant to the compiler team, which will review and decide on the RFC.T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.
Description
For example, Clang has #pragma loop
which allow the programmer to guide loop unrolling, vectorization, and other optimizations. This is useful in high performance code because heuristics are often fallible and nudging the optimizer in the right direction can sometimes squeeze out some more performance (for a particular optimizer version, of course).
In Rust, the natural replacement for a pragma would probably be an attribute.
durka, marshallpierce, delacian, koutheir, kazimuth and 44 moreelichai, hovind, JoeyBF, schneiderfelipe, q2p and 1 moreelichai, schneiderfelipe and ChristianJacobsen
Metadata
Metadata
Assignees
Labels
T-compilerRelevant to the compiler team, which will review and decide on the RFC.Relevant to the compiler team, which will review and decide on the RFC.T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.