summaryrefslogtreecommitdiff
path: root/compiler/optimizing/optimization.cc
diff options
context:
space:
mode:
author Evgeny Astigeevich <evgeny.astigeevich@linaro.org> 2020-08-06 16:28:37 +0100
committer Evgeny Astigeevich <evgeny.astigeevich@linaro.org> 2020-08-18 15:10:01 +0100
commit0f3d7acf40b2ba1b04a9b359950a30b6314ace07 (patch)
treefe25b27252489b17dd9865ddf688649dc9495ff7 /compiler/optimizing/optimization.cc
parent50fe6dc170402600936d72a5fd729b5ebda0294b (diff)
ART: Add HasNonNegativeInputAt and HasNonNegativeOrMinIntInputAt
When it can be quickly checked that an input operand in non-negative, additional optimizations can be applied during code generation. The CL adds HasNonNegativeInputAt and HasNonNegativeOrMinIntInputAt which can be used to check if the input operand of an instruction at the index is non-negative. They guarantee that at the time of checks the instruction can have non-negative inputs. Other optimizations after that might break the invariant. Optimizations HRem/HDiv for ARM32/ARM64 are moved to used the new methods. Test: 411-checker-hdiv-hrem-pow2 Test: 411-checker-hdiv-hrem-const Test: test.py --host --optimizing --jit --gtest --interpreter Test: test.py -target --optimizing --jit --interpreter Test: run-gtests.sh Change-Id: Icf8574699e003bba194097c4e39660de16aa53d9
Diffstat (limited to 'compiler/optimizing/optimization.cc')
0 files changed, 0 insertions, 0 deletions