Integrate LLVM to llvm/llvm-project@3ef8b8cd3ba3 (#25382) Bumps `third_party/llvm-project` from 8c8449e58ba8 (+ carried revert) to upstream 3ef8b8cd3ba3 (832 commits). No commits are carried on top of upstream anymore. **LLVM branch:** `sm-iree-integrates/llvm-20261130` at 3ef8b8cd3ba3. It is currently only in my fork (https://github.com/L-roro/llvm-project/tree/sm-iree-integrates/llvm-20261130) because I don't have write access to `iree-org/llvm-project`. **Could a maintainer please mirror it to `iree-org/llvm-project`?** CI can't check out the submodule until then. The branch is plain upstream `main`, so from any up-to-date LLVM checkout: ```bash git push https://github.com/iree-org/llvm-project.git 3ef8b8cd3ba3ccb7c1bf051f2a241bef3910d3e2:refs/heads/sm-iree-integrates/llvm-20261130 ``` ## Dropped revert Drops the carried revert of llvm/llvm-project@d71acc8f3779 ("[mlir] Avoid eager invalidation in `DeadnessCache`", llvm/llvm-project#244443). #25349 fixed the Flow pattern the revert was added for. Explanation -> While the pattern rewriter is running, it keeps a list of the IR it has just created or changed. If code deletes some of that IR behind its back, without telling the rewriter, the list points to freed memory and the compiler can crash. With the revert gone, ASan found more patterns that delete rewriter-created blocks behind the rewriter's back, causing heap-use-after-free in `DeadnessCache::flushInvalidations()`. Additionally, three places (PCF structural lowering, PCF bufferization, BitcastUnsupportedElementTypes) used the same risky pattern and, even though they did not trigger ASan (because they are not being used inside a greedy rewriter), I moved them to the same helper. ## Other adaptations - llvm/llvm-project@c4675ee7d4d9 ("[mlir][arith] Only fold truncf(sitofp(x)) to sitofp(x) when the first conversion is exact", llvm/llvm-project#233536): `convert_qdq_to_integer_math_scale_range.mlir` now expects `sitofp i32 to f32` + `truncf` for the f16 result. - The same change no longer folds `sitofp i64 to f64` + `truncf f64 to f32` in host code. and `ArithToVM` had no `truncf` lowering. Added one: `vm.trunc.f64.f32` with the f64 extension, a no-op when the VM truncates f64 to f32. Also had to fix the `vm.trunc.f64.f32` constant folder, which was never used before and called `convertToFloat()` on an f64 value (which, despite the name, does not convert between formats; it only reads a value that is already single precision so we need to round the f64 value to f32 explicitly). - With that lowering, `test_maxpool_2d_same_lower` and `test_maxpool_2d_same_upper` now compile and match expected outputs, so they are removed from `expected_compile_failures` in the ONNX configs CI runs (cpu_llvm_sync O0/O2, hip rdna3 O3, hip rdna4 O3). Assisted-by: Claude Code Signed-off-by: L-roro <rodriguez@roofline.ai> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
IREE (Intermediate Representation Execution Environment, pronounced as “eerie”) is an MLIR-based end-to-end compiler and runtime that lowers Machine Learning (ML) models to a unified IR that scales up to meet the needs of the datacenter and down to satisfy the constraints and special considerations of mobile and edge deployments.
See our website for project details, user guides, and instructions on building from source.
Releases notes are published on GitHub releases.
| Package | Release status |
|---|---|
| GitHub release (stable) | |
| GitHub release (nightly) | |
iree-base-compiler | |
iree-base-runtime |
For more details on the release process, see https://iree.dev/developers/general/release-management/.
| Operating system | Build status |
|---|---|
| Linux | |
| macOS |
For the full list of workflows see https://iree.dev/developers/general/github-actions/.
See our website for more information.
Community meeting recordings: IREE YouTube channel
| Date | Title | Recording | Slides |
|---|---|---|---|
| 2025-06-10 | Data-Tiling in IREE: Achieving High Performance Through Compiler Design (AsiaLLVM) | recording | slides |
| 2025-05-17 | Introduction to GPU architecture and IREE's GPU CodeGen Pipeline | recording | slides |
| 2025-02-12 | The Long Tail of AI: SPIR-V in IREE and MLIR (Vulkanised) | recording | slides |
| 2024-10-01 | Unveiling the Inner Workings of IREE: An MLIR-Based Compiler for Diverse Hardware | recording | |
| 2021-06-09 | IREE Runtime Design Tech Talk | recording | slides |
| 2020-08-20 | IREE CodeGen (MLIR Open Design Meeting) | recording | slides |
| 2020-03-18 | Interactive HAL IR Walkthrough | recording | |
| 2020-01-31 | End-to-end MLIR Workflow in IREE (MLIR Open Design Meeting) | recording | slides |
IREE is licensed under the terms of the Apache 2.0 License with LLVM Exceptions. See LICENSE for more information.