Skip to content

Remove "slow target" flag for mips(el)-linux targets in tests with LLVM 20 #21096

Description

@alexrp

Right now, we're flagging these targets as slow by default, causing them to not get run in tests unless -Dtest-slow-targets is passed.

zig/test/tests.zig

Lines 313 to 365 in 11176d2

.{
.target= .{
.cpu_arch=.mips,
.os_tag=.linux,
.abi=.none,
},
.slow_backend=true,
},
.{
.target= .{
.cpu_arch=.mips,
.os_tag=.linux,
.abi=.musl,
},
.link_libc=true,
.slow_backend=true,
},
.{
.target= .{
.cpu_arch=.mips,
.os_tag=.linux,
.abi=.gnueabihf,
},
.link_libc=true,
.slow_backend=true,
},
.{
.target= .{
.cpu_arch=.mipsel,
.os_tag=.linux,
.abi=.none,
},
.slow_backend=true,
},
.{
.target= .{
.cpu_arch=.mipsel,
.os_tag=.linux,
.abi=.musl,
},
.link_libc=true,
.slow_backend=true,
},
.{
.target= .{
.cpu_arch=.mipsel,
.os_tag=.linux,
.abi=.gnueabihf,
},
.link_libc=true,
.slow_backend=true,
},

We do this because it takes 30-60 minutes to compile the tests for these targets due to a severe LLVM performance issue. The upstream issue is filed here: llvm/llvm-project#104562

This issue is to track removing the "slow target" flag from these if/when the LLVM bug gets fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-mips32-bit MIPSbackend-llvmThe LLVM backend outputs an LLVM IR Module.bugObserved behavior contradicts documented or intended behaviorupstreamAn issue with a third party project that Zig uses.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions