summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2019-10-10 16:04:49 +0000
committerDavid Green <david.green@arm.com>2019-10-10 16:04:49 +0000
commit94d379095a9c1030582a6ab9199d67d6c64a2642 (patch)
tree575bc8bbc61f72e3320195829972a40a5f48837d /lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp
parentdd37a26f6d3e206e964f1d5f6e0098c079093f42 (diff)
downloadbcm5719-llvm-94d379095a9c1030582a6ab9199d67d6c64a2642.tar.gz
bcm5719-llvm-94d379095a9c1030582a6ab9199d67d6c64a2642.zip
[Codegen] Alter the default promotion for saturating adds and subs
The default promotion for the add_sat/sub_sat nodes currently does: 1. ANY_EXTEND iN to iM 2. SHL by M-N 3. [US][ADD|SUB]SAT 4. L/ASHR by M-N If the promoted add_sat or sub_sat node is not legal, this can produce code that effectively does a lot of shifting (and requiring large constants to be materialised) just to use the overflow flag. It is simpler to just do the saturation manually, using the higher bitwidth addition and a min/max against the saturating bounds. That is what this patch attempts to do. Differential Revision: https://reviews.llvm.org/D68643 llvm-svn: 374373
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud