diff options
author | Huihui Zhang <huihuiz@quicinc.com> | 2019-09-24 00:15:03 +0000 |
---|---|---|
committer | Huihui Zhang <huihuiz@quicinc.com> | 2019-09-24 00:15:03 +0000 |
commit | 895219971592f7011083de395308a0702f911cb9 (patch) | |
tree | 7feace8632d7b049b1047a38bbbc407ae368480f /lldb/packages/Python/lldbsuite/test/commands/frame/language/TestGuessLanguage.py | |
parent | adec1209e627aecb6634edb46e99e741d95ba95f (diff) | |
download | bcm5719-llvm-895219971592f7011083de395308a0702f911cb9.tar.gz bcm5719-llvm-895219971592f7011083de395308a0702f911cb9.zip |
[InstCombine] Fold a shifty implementation of clamp-to-zero.
Summary:
Fold
and(ashr(subNSW(Y, X), ScalarSizeInBits(Y)-1), X)
into
X s> Y ? X : 0
https://rise4fun.com/Alive/lFH
Fold shift into select enables more optimization,
e.g., vmax generation for ARM target.
Reviewers: lebedev.ri, efriedma, spatel, kparzysz, bcahoon
Reviewed By: lebedev.ri
Subscribers: xbolva00, andreadb, craig.topper, RKSimon, kristof.beyls, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67799
llvm-svn: 372676
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/frame/language/TestGuessLanguage.py')
0 files changed, 0 insertions, 0 deletions