HomeFreeBSD

libzpool: add workaround for MIPS-specific llvm bug compiling arc.c

Description

libzpool: add workaround for MIPS-specific llvm bug compiling arc.c

This works around an assertion in llvm's shrink wrapping analysis pass,
when compiling arc.c for mips and mips64:

Assertion failed: (PhysReg.isPhysical() && "Unallocated register?!"), function useOrDefCSROrFI, file /usr/src/contrib/llvm-project/llvm/lib/CodeGen/ShrinkWrap.cpp, line 341.

The bug will also be submitted upstream.

Direct commit to stable/13, since MIPS support was removed in 14.0.

Details

Provenance
dimAuthored on Dec 1 2024, 12:52 PM
Parents
rG5dc061642ece: Merge llvm-project release/19.x llvmorg-19.1.4-0-gaadaa00de76e
Branches
Unknown
Tags
Unknown