summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2017-01-19 22:41:22 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2017-01-19 22:41:22 +0000
commitfb32eea1b4b0f7bf2261d23250f6d0667a5b21a7 (patch)
tree5a103e326f720b5c5b1e7ec75f949787e94acefb /llvm/lib/Transforms
parentda556345dcfd269af0f6a50acb661dc33d99e92d (diff)
downloadbcm5719-llvm-fb32eea1b4b0f7bf2261d23250f6d0667a5b21a7.tar.gz
bcm5719-llvm-fb32eea1b4b0f7bf2261d23250f6d0667a5b21a7.zip
[SelectionDAG] Improve knownbits handling of UMIN/UMAX (PR31293)
This patch improves the knownbits logic for unsigned integer min/max opcodes. For UMIN we know that the result will have the maximum of the inputs' known leading zero bits in the result, similarly for UMAX the maximum of the inputs' leading one bits. This is particularly useful for simplifying clamping patterns,. e.g. as SSE doesn't have a uitofp instruction we want to use sitofp instead where possible and for that we need to confirm that the top bit is not set. Differential Revision: https://reviews.llvm.org/D28853 llvm-svn: 292528
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud