summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-09-22 22:36:26 +0000
committerSanjay Patel <spatel@rotateright.com>2016-09-22 22:36:26 +0000
commit30ef70b090ac5917bf97c92d8bab05d48cc3057b (patch)
tree9b255b4aa09aebaf05d0b41ca742337808578141 /lldb/packages/Python
parent3acdf38519923f1ce293c7bacac542804145ea7c (diff)
downloadbcm5719-llvm-30ef70b090ac5917bf97c92d8bab05d48cc3057b.tar.gz
bcm5719-llvm-30ef70b090ac5917bf97c92d8bab05d48cc3057b.zip
[InstCombine] fold X urem C -> X < C ? X : X - C when C is big (PR28672)
We already have the udiv variant of this transform, so I think this is ok for InstCombine too even though there is an increase in IR instructions. As the tests and TODO comments show, the transform can lead to follow-on combines. This should fix: https://llvm.org/bugs/show_bug.cgi?id=28672 Differential Revision: https://reviews.llvm.org/D24527 llvm-svn: 282209
Diffstat (limited to 'lldb/packages/Python')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud