diff options
author | James Molloy <james.molloy@arm.com> | 2015-11-04 16:55:07 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2015-11-04 16:55:07 +0000 |
commit | e7d679cf4c69e9b225ee7830868c67fa3d623fc4 (patch) | |
tree | 4b5fbcec410ef6e587c564605c00156aa3e9a9f5 /lldb/packages/Python/lldbsuite/test/dotest.py | |
parent | d6e069f990607499aff09aca54b238a86a25552b (diff) | |
download | bcm5719-llvm-e7d679cf4c69e9b225ee7830868c67fa3d623fc4.tar.gz bcm5719-llvm-e7d679cf4c69e9b225ee7830868c67fa3d623fc4.zip |
[ARM] Combine CMOV into BFI where possible
If we have a CMOV, OR and AND combination such as:
if (x & CN)
y |= CM;
And:
* CN is a single bit;
* All bits covered by CM are known zero in y;
Then we can convert this to a sequence of BFI instructions. This will always be a win if CM is a single bit, will always be no worse than the TST & OR sequence if CM is two bits, and for thumb will be no worse if CM is three bits (due to the extra IT instruction).
llvm-svn: 252057
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
0 files changed, 0 insertions, 0 deletions