summary refs log tree commit diff
path: root/src/test/codegen/issue-103285-ptr-addr-overflow-check.rs
AgeCommit message (Collapse)AuthorLines
2022-10-20Don't use usub.with.overflow intrinsicNikita Popov-0/+16
The canonical form of a usub.with.overflow check in LLVM are separate sub + icmp instructions, rather than a usub.with.overflow intrinsic. Using usub.with.overflow will generally result in worse optimization potential. The backend will attempt to form usub.with.overflow when it comes to actual instruction selection. This is not fully reliable, but I believe this is a better tradeoff than using the intrinsic in IR. Fixes #103285.