This adds a call to matchSignedSaturate from smin/smax instrinsics, allowing the same patterns to match if the canonical form is an intrinsics, not a icmp/select.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp | ||
---|---|---|
2215–2218 | These "one-use" checks aren't going to work correctly for the intrinsic form, where we don't have the duplicate cmp+select use. |
Comment Actions
Cheers
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp | ||
---|---|---|
2215–2218 | Oh yeah good point. Will fix. |
These "one-use" checks aren't going to work correctly for the intrinsic form, where we don't have the duplicate cmp+select use.