diff options
author | Sanjay Patel <spatel@rotateright.com> | 2018-11-13 23:27:23 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2018-11-13 23:27:23 +0000 |
commit | a139564896f2d0d4dc4dc491c4b17c9f01975a26 (patch) | |
tree | 2a2f2ba388d4044d1e62ab0c1f77bcd238b09e5c /lldb/packages/Python/lldbsuite/test/python_api/value | |
parent | e0c00718ec2312ce55c79340a2c986a99e279cf9 (diff) | |
download | bcm5719-llvm-a139564896f2d0d4dc4dc491c4b17c9f01975a26.tar.gz bcm5719-llvm-a139564896f2d0d4dc4dc491c4b17c9f01975a26.zip |
[InstCombine] fold funnel shift amount based on demanded bits
The shift amount of a funnel shift is modulo the scalar bitwidth:
http://llvm.org/docs/LangRef.html#llvm-fshl-intrinsic
...so we can use demanded bits analysis on that operand to simplify it
when we have a power-of-2 bitwidth.
This is another step towards canonicalizing {shift/shift/or} to the
intrinsics in IR.
Differential Revision: https://reviews.llvm.org/D54478
llvm-svn: 346814
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/value')
0 files changed, 0 insertions, 0 deletions