summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2020-07-12 14:18:45 -0400
committerMatt Arsenault <Matthew.Arsenault@amd.com>2020-07-23 09:06:42 -0400
commitb35833b84e95c42ca7166232e193b2b8e221b56a (patch)
tree33ff0d9f0832fc207f5398ae5b72af854bf3e087 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent82e35197e68311abf7561f9ed05fbfc09be0e601 (diff)
[GlobalISel][AMDGPU] Legalize saturating add/subtract
Add support in LegalizerHelper for lowering G_SADDSAT etc. either using add/subtract-with-overflow or using max/min instructions. Enable this lowering for AMDGPU so it can be tested. The legalization rules are still approximate and skips out on using the clamp bit to treat these as legal, which has never been used before. This also doesn't yet try to deal with expanding SALU cases.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions