~/talk

Semiring Optimizations: Dynamic Elision of Expressions with Identity and Absorbing Elements

Talkat OOPSLA 2020 · 2020-11-15..11-20· [compilers-and-language-design]
slides:none on file

A compiler pass detects semiring patterns (c = c + ab) in LLVM IR and inserts speculative checks so identity/absorbing elements elide work; implemented in LLVM 6.0.1, tested on an Intel Core i7 against Clang -O3 and TACO. It finds the pattern in 126 LLVM tests, evaluates 35 long-running benchmarks, and yields average speedup 1.06 with some kernels hitting nearly 3x speedup; some slowdowns occur. Four strategies include silent store elimination and pre-loop profiling (PLP)*, with PLP the fastest and matching TACO when zeros exceed ~50–55%.

AI-written summary · about

  1. 0:00Intro
  2. 0:18Semiring Optimization: Dynamic Elision of Expressions with Identity and Absorbing Elements
  3. 1:18Goal
  4. 1:38Possible Optimization
  5. 2:58The Algorithm For Identifying Insertion Points
  6. 4:40Proposed Solutions
  7. 5:10Matrix Multiplication Algorithm
  8. 5:25Silent Store Elimination (SSE)
  9. 5:57Elision of Absorbing Elements (EAE)
  10. 7:12What if?
  11. 7:29Intra-Loop Profile (ALP)
  12. 10:28Setup
  13. 10:53Prevalence of Ring Patterns
  14. 11:55Speedup
  15. 13:27Comparison with TACO
  16. 15:13Final Notes
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.