You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adding a doc comment talking about performance impacts of assume #77561
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-intrinsicsArea: IntrinsicsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
So LLVM hasn't changed much since nagisa wrote #54995 (comment).
Here the link to related regression caused by using constly assume intrinsic in const fn: #77023 (comment)
I think we could include a warning for assume intrinsic about using it in const fn and should run a perf for PR using it.
changed the title [-]Adding a doc comment talk about side-effect of const assume on LLVM[/-][+]Adding a doc comment talking about side-effect of const assume on LLVM[/+]on Oct 5, 2020
changed the title [-]Adding a doc comment talking about side-effect of const assume on LLVM[/-][+]Adding a doc comment talking about performance impacts of `assume`[/+]on Oct 6, 2020
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-intrinsicsArea: IntrinsicsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
Activity
[-]Adding a doc comment talk about side-effect of const assume on LLVM[/-][+]Adding a doc comment talking about side-effect of const assume on LLVM[/+]RalfJung commentedon Oct 5, 2020
Is there anything specific about
consthere? Seems like what @nagisa wrote applies equally tofnandconst fn.[-]Adding a doc comment talking about side-effect of const assume on LLVM[/-][+]Adding a doc comment talking about performance impacts of `assume`[/+]lolbinarycat commentedon Sep 9, 2024
triage: there is now a note about optimizations, and
assert_uncheckedalso has much more explanatory documentation