[PATCH] D94936: [AArch64][GlobalISel] Make G_USUBO legal and select it

Cassie Jones via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 18 15:54:00 PST 2021


porglezomp created this revision.
porglezomp added reviewers: t.p.northover, paquette.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls, rovka.
porglezomp requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The expansion for wide subtractions includes G_USUBO, so it's important
that it's a legal instruction.

[AArch64][GlobalISel] Add selection support for G_UADDE and G_USUBE

These take a carry-in argument. In the common case where it's directly
fed by a carry-out operation in the preceding instruction, we can
translate it to an ADCS/SBCS operation. Otherwise, we re-generate the
condition flags.

[AArch64][GlobalISel] Make G_SADDE and G_SSUBE legal


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94936

Files:
  llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
  llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/legalize-arith-128.ll
  llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir
  llvm/test/CodeGen/AArch64/GlobalISel/select-add-carry.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94936.317427.patch
Type: text/x-patch
Size: 19259 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210118/cdb4c043/attachment.bin>


More information about the llvm-commits mailing list