summaryrefslogtreecommitdiffstats
path: root/lldb/unittests/ObjectFile
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-02-05 17:53:29 +0000
committerSanjay Patel <spatel@rotateright.com>2018-02-05 17:53:29 +0000
commite9a153f4145d6f78f1f1cd0b6205319f236e5fa4 (patch)
treeae5f56be601488b08192bb614a509afc880570a9 /lldb/unittests/ObjectFile
parent4f0331251f567b3edb5f55aa0543dc03041cff8e (diff)
downloadbcm5719-llvm-e9a153f4145d6f78f1f1cd0b6205319f236e5fa4.tar.gz
bcm5719-llvm-e9a153f4145d6f78f1f1cd0b6205319f236e5fa4.zip
[InstCombine] add unsigned saturation subtraction canonicalizations
This is the instcombine part of unsigned saturation canonicalization. Backend patches already commited: https://reviews.llvm.org/D37510 https://reviews.llvm.org/D37534 It converts unsigned saturated subtraction patterns to forms recognized by the backend: (a > b) ? a - b : 0 -> ((a > b) ? a : b) - b) (b < a) ? a - b : 0 -> ((a > b) ? a : b) - b) (b > a) ? 0 : a - b -> ((a > b) ? a : b) - b) (a < b) ? 0 : a - b -> ((a > b) ? a : b) - b) ((a > b) ? b - a : 0) -> - ((a > b) ? a : b) - b) ((b < a) ? b - a : 0) -> - ((a > b) ? a : b) - b) ((b > a) ? 0 : b - a) -> - ((a > b) ? a : b) - b) ((a < b) ? 0 : b - a) -> - ((a > b) ? a : b) - b) Patch by Yulia Koval! Differential Revision: https://reviews.llvm.org/D41480 llvm-svn: 324255
Diffstat (limited to 'lldb/unittests/ObjectFile')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud