[PATCH] D58637: [LegalizeDAG] Expand SADDO/SSUBO using SADDSAT/SSUBSAT (PR37763)
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 25 10:41:02 PST 2019
RKSimon created this revision.
RKSimon added reviewers: nikic, spatel.
Herald added a subscriber: jdoerfert.
Herald added a project: LLVM.
If SADDSAT/SSUBSAT are legal, then we can expand SADDO/SSUBO by performing a ADD/SUB and a SADDO/SSUBO and then compare the results.
I looked at doing this for UADDO/USUBO as well but as we don't have to do as many range comparisons I didn't see any/much benefit.
Repository:
rL LLVM
https://reviews.llvm.org/D58637
Files:
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
test/CodeGen/X86/vec_saddo.ll
test/CodeGen/X86/vec_ssubo.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58637.188216.patch
Type: text/x-patch
Size: 28542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190225/65fb6414/attachment.bin>
More information about the llvm-commits
mailing list