[PATCH] D47927: [RISCV] Custom lower ISD::{U,S}{ADD,SUB}O nodes
Roger Ferrer Ibanez via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 7 22:34:26 PDT 2018
rogfer01 created this revision.
rogfer01 added a reviewer: asb.
Herald added subscribers: mgrang, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, sabuasal, apazos, simoncook, johnrusso, rbar.
`ISD::UADDO` and `ISD::USUBO` should be relatively straightforward and the current codegen work sensibly (so perhaps we do not need to custom lower them in any way?)
`ISD::SADDO` uses the suggested sequence described in the not found in ยง2.4 of the RISCV Spec v2.2. `ISD::SSUBO` uses a dual approach.
https://reviews.llvm.org/D47927
Files:
lib/Target/RISCV/RISCVISelLowering.cpp
lib/Target/RISCV/RISCVISelLowering.h
test/CodeGen/RISCV/overflow.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47927.150448.patch
Type: text/x-patch
Size: 6339 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180608/4536f8ce/attachment.bin>
More information about the llvm-commits
mailing list