[PATCH] D57639: [CodeGen] Handle vector UADDO, SADDO, USUBO, SSUBO

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 2 11:12:53 PST 2019


nikic created this revision.
nikic added reviewers: RKSimon, spatel.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This is part of https://bugs.llvm.org/show_bug.cgi?id=40442.

It implements vector legalization for the add/sub overflow opcodes. UMULO/SMULO are handled as far as legalization is concerned, but they don't support vector expansion (so no tests for them).

The vector result widening implementation is incomplete, in that it only handles the case where both results would widen to the same size. I've left an assertion behind for that.


Repository:
  rL LLVM

https://reviews.llvm.org/D57639

Files:
  lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
  lib/CodeGen/SelectionDAG/LegalizeTypes.h
  lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
  lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  test/CodeGen/X86/vec_saddo.ll
  test/CodeGen/X86/vec_ssubo.ll
  test/CodeGen/X86/vec_uaddo.ll
  test/CodeGen/X86/vec_usubo.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57639.184907.patch
Type: text/x-patch
Size: 291216 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190202/b0b28cf0/attachment-0001.bin>


More information about the llvm-commits mailing list