# IRHash: an IR-level compilation cache for LLVM

**URL:** https://discourse.julialang.org/t/irhash-an-ir-level-compilation-cache-for-llvm/132122
**Category:** Offtopic
**Created:** [September 5, 2025, 4:56pm UTC](https://discourse.julialang.org/t/irhash-an-ir-level-compilation-cache-for-llvm/132122 "2025-09-05T16:56:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![xiaoxi](https://avatars.discourse-cdn.com/v4/letter/x/a9adbd/32.png) [@xiaoxi](https://discourse.julialang.org/u/xiaoxi)
#### Post date: [September 5, 2025, 4:56pm UTC](https://discourse.julialang.org/t/irhash-an-ir-level-compilation-cache-for-llvm/132122/1 "2025-09-05T16:56:22Z")

</div>

There was recently a presentation about IRHash, an IR-level compiler cache for LLVM. The authors compared IRHash with Ccache and cHash across 16 open-source projects written in C, C++, Fortran, and Haskell. They found that IRHash offers greater overall savings than Ccache and cHash, and supports more languages.  
[https://www.usenix.org/conference/atc25/presentation/landsberg](https://www.usenix.org/conference/atc25/presentation/landsberg)

I wonder if it could be useful to Julia in the future.

---

<div class="post-metadata">

### Author: ![simeonschaub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simeonschaub/32/216566_2.png) [@simeonschaub](https://discourse.julialang.org/u/simeonschaub)
#### Post date: [September 5, 2025, 5:48pm UTC](https://discourse.julialang.org/t/irhash-an-ir-level-compilation-cache-for-llvm/132122/2 "2025-09-05T17:48:31Z")

</div>

There have been some attempts in a similar direction in [Finer grained precompile native code cache (part 1) by xal-0 · Pull Request #58592 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/pull/58592)
