[PATCH] D58872: [InstCombine] Start canonicalizing to uadd.sat and usub.sat

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 2 04:54:01 PST 2019


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

At this point our uadd.sat and usub.sat support should be better than expanded IR, so start canonicalizing to these intrinsics. I'm porting the already existing patterns, though we'll also want to convert the currently canonical patterns in addition to that.


Repository:
  rL LLVM

https://reviews.llvm.org/D58872

Files:
  lib/Transforms/InstCombine/InstCombineSelect.cpp
  test/Transforms/InstCombine/saturating-add-sub.ll
  test/Transforms/InstCombine/unsigned_saturated_sub.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58872.189043.patch
Type: text/x-patch
Size: 22963 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190302/9e380efa/attachment.bin>


More information about the llvm-commits mailing list