[PATCH] D54531: [ConstantFolding] Add support for saturating add/sub

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 14 08:42:49 PST 2018


nikic created this revision.
Herald added a subscriber: llvm-commits.

Support saturating add/sub in constant folding, based on the APInt methods introduced in https://reviews.llvm.org/D54332.


Repository:
  rL LLVM

https://reviews.llvm.org/D54531

Files:
  lib/Analysis/ConstantFolding.cpp
  test/Analysis/ConstantFolding/saturating-add-sub.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54531.174046.patch
Type: text/x-patch
Size: 5771 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181114/aeca9cae/attachment.bin>


More information about the llvm-commits mailing list