-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Consider using new LLVM intrinsic for i32::saturating_add etc. #55286
Copy link
Copy link
Closed
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
As featured in LLVM Weekly, https://reviews.llvm.org/rL344629 introduces
@llvm.sadd.satfor saturating signed integer addition. Not sure whether it's as transparent to the optimizer yet as open-coding it based onchecked_add(as we currently do), but we might want to try it when we update to an LLVM version that has that intrinsic available.