[Libre-soc-bugs] [Bug 228] VP9 optimizations

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sat Oct 1 02:01:08 BST 2022


--- Comment #9 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
  47     # Load 4 elements from src_ptr and ref_ptr
  48     sv.lha  *src, 0(src_col)                # Load 4 ints from (src_ptr)
  49     sv.lha  *ref, 0(ref_col)                # Load 4 ints from (ref_ptr)

these can both be:

    sv.lha/els *src, 2(src_col)  # element-strided multiplies i by immediate

then src_col may be added to by VL
where VL has been put into a temp register (e.g. r30) *inside* the loop
not outside as a static quantity:

    setvl r30, .....

ok now you can mul r30 by 2

    mulli r29, r30, 2
    add src_col, src_col, r29

You are receiving this mail because:
You are on the CC list for the bug.

More information about the libre-soc-bugs mailing list