diff options
author | David Majnemer <david.majnemer@gmail.com> | 2013-04-18 07:30:07 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2013-04-18 07:30:07 +0000 |
commit | bdf0caf6b16e15743214ce9f91b83c21e6bd96b9 (patch) | |
tree | 55345ffeaf2f42389b8338c3a5f1da18a3d46ea2 /lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h | |
parent | 323964ca9e8f1f930140fd2ce85bfb17dcdf4e59 (diff) | |
download | llvm-bdf0caf6b16e15743214ce9f91b83c21e6bd96b9.zip llvm-bdf0caf6b16e15743214ce9f91b83c21e6bd96b9.tar.gz llvm-bdf0caf6b16e15743214ce9f91b83c21e6bd96b9.tar.bz2 |
Combine bit test + conditional or into simple math
Simplify:
(select (icmp eq (and X, C1), 0), Y, (or Y, C2))
Into:
(or (shl (and X, C1), C3), y)
Where:
C3 = Log(C2) - Log(C1)
If:
C1 and C2 are both powers of two
llvm-svn: 179748
Diffstat (limited to 'lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h')
0 files changed, 0 insertions, 0 deletions