diff options
| author | Christophe Leroy <[email protected]> | 2023-02-01 11:04:29 +0100 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2023-02-10 22:17:35 +1100 |
| commit | 8616045fe785229b53a24b8698631826298d1500 (patch) | |
| tree | e1eefbcc1a52c62d72f01318bf955e8034d17b6a /tools/perf/scripts/python/sched-migration.py | |
| parent | d3921cbb6cd663193cecf04f0b170a30c6d0e390 (diff) | |
powerpc/bpf/32: Optimise some particular const operations
Simplify multiplications and divisions with constants when the
constant is 1 or -1.
When the constant is a power of 2, replace them by bit shits.
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/e53b1f4a4150ec6cabcaeeef82bf9c361b5f9204.1675245773.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions