This is an archive of the discontinued LLVM Phabricator instance.

[X86][SSE] Auto upgrade PADDUS/PSUBUS intrinsics to UADD_SAT/USUB_SAT generic intrinsics (clang)
ClosedPublic

Authored by RKSimon on Dec 19 2018, 12:00 AM.

Details

Summary

Sibling patch to D55855, this emits UADD_SAT/USUB_SAT generic intrinsics for the SSE saturated math intrinsics instead of expanding to a IR code sequence that could be difficult to reassemble.

Diff Detail

Repository
rC Clang

Event Timeline

RKSimon created this revision.Dec 19 2018, 12:00 AM
spatel accepted this revision.Dec 19 2018, 6:14 AM

LGTM - I haven't looked in a while to see if it works, but I thought we have a script to auto-generate the CHECK lines for C-->IR tests, so we wouldn't need to 'CHECK-NOT' in these functions.

This revision is now accepted and ready to land.Dec 19 2018, 6:14 AM
This revision was automatically updated to reflect the committed changes.