diff options
| author | 2020-09-14 14:02:40 +0100 | |
|---|---|---|
| committer | 2020-09-18 12:23:51 +0000 | |
| commit | c679fe3915fee6c490c1e8478a6c455f62c10a3f (patch) | |
| tree | f0f676afba57ee13a3e040bce1a5636d5e6b838a /compiler/optimizing/instruction_builder.cc | |
| parent | 952c0904d46f4170c6a2578c19a702a0499e57f4 (diff) | |
ARM: Optimize div/rem when dividend is compared with a non-negative
When a divisor is a positive constant and a dividend is compared with a
non-negative value, the result of the comparison can guarantee that the
dividend is non-negative. In such a case there is no need to generate
instructions correcting the result of div/rem.
The CL implements this optimization for ARM32/ARM64.
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: If1dc1389f6e34d2be3480ef620a626f389ca53a5
Diffstat (limited to 'compiler/optimizing/instruction_builder.cc')
0 files changed, 0 insertions, 0 deletions