diff options
| author | 2023-11-30 16:27:05 +0000 | |
|---|---|---|
| committer | 2024-01-31 17:26:37 +0000 | |
| commit | c9024b30701cbe736b7e2fa56ff65330932a1be4 (patch) | |
| tree | ed4cc7f9893b6ea332a332bd2400c254ee848804 /compiler/optimizing/optimizing_compiler_stats.h | |
| parent | 90bb99a6a2ba88aad18f0ed6e4ad9976bd27df34 (diff) | |
Simplify "x << N >>> N" and "x << N >> N"
Replace UShr/Shr(Shl(x, N), N) with corresponding
TypeConversion<T>
if:
* N is Const32
* N % kBitsPerByte = 0
* Shl doesn't have other users
* Shl result is not 64-bit
where:
T - unsigned/signed type with a size equals to
BitSize(Shl(x, N)) - N
Test: testrunner.py --optimizing
Change-Id: Id903100ef9fecd272b853e27bba09f8d668d39c0
Diffstat (limited to 'compiler/optimizing/optimizing_compiler_stats.h')
0 files changed, 0 insertions, 0 deletions