Linux Kernel & OS

AMD proposes removing LLVM R600 compiler backend for legacy Radeon HD 2000-6000 GPUs

Key Takeaway

AMD's compiler team has initiated deprecation of the R600 LLVM backend, which supported pre-GCN Radeon hardware, because Mesa's R600g driver no longer uses it and no active consumers remain.

Summary

Harrison Hao from AMD's Shanghai compiler team posted an RFC to the LLVM community proposing the removal of the R600 backend, which generates code for Radeon HD 2000 through HD 6000 series graphics processors based on the TeraScale architecture. This backend was historically used by Mesa's R600 Gallium3D driver and the now-removed Clover OpenCL stack, but both use cases have evaporated: R600g transitioned to NIR and no longer depends on LLVM, and Clover was replaced by Rusticl.

The R600 backend has become unmaintained dead code that complicates ongoing development of the modern AMDGPU backend used for GCN and newer Radeon GPUs. Its removal would eliminate legacy conditional paths and lit test maintenance overhead. No objections have been raised in the RFC discussion so far, suggesting consensus for its retirement.

What the R600 backend removal changes in LLVM

  • Affected hardware scope: The R600 backend covers only TeraScale-era GPUs (Radeon HD 2000-6000 series); GCN, RDNA, and newer Radeon GPUs use the separate AMDGPU backend and are unaffected.
  • Mesa driver transition: The R600g Gallium3D driver migrated to NIR (New IR) as its intermediate representation, severing its dependency on the LLVM R600 backend for code generation.
  • OpenCL stack obsolescence: Clover, the former OpenCL state tracker that relied on the R600 backend, was removed from mainline Mesa and superseded by Rusticl, a Rust-based implementation targeting newer hardware through AMDGPU.
  • Maintenance burden on AMDGPU: The R600 backend's lit tests and legacy code paths create ongoing review overhead and conditional complexity when modifying the modern AMDGPU backend for current Radeon products.
  • No known remaining users: AMD's compiler team has identified no active consumers of the R600 backend, and the RFC has drawn no pushback from the LLVM community.

Why it matters

For Linux distributions and users still running vintage Radeon HD 2000-6000 hardware, this change is largely academic: Mesa's R600g driver already operates without LLVM via NIR, so graphics functionality persists. The removal matters more for LLVM maintainers and AMD compiler engineers, as it reduces technical debt and streamlines validation workflows for the AMDGPU backend that serves modern Radeon GPUs across Linux gaming, compute, and professional workloads.

Original reference: www.phoronix.com →