Skip to content

[REQ] Force specific loops to remain unrolled #1140

@lmtss

Description

@lmtss

Description

Force specific loops to remain unrolled, similar to HLSL's [loop].

Context

I am developing iterative algorithms that typically require over 20 iterations, a number determined empirically and not intended for dynamic configuration. However, since this iteration count is treated as a compile-time constant, the loops are fully unrolled by the compiler. This results in excessive code expansion and significantly prolonged compilation times.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequest for something to be added

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions