Skip to content

excessively large loops #32

@sajattack

Description

@sajattack

Hey, I'm not sure if this is something that can be fixed or required by LLVM/Rust ABI, but I noticed some simple busy loops were quite large (42 bytes).

#[inline(never)]
extern fn delay() {
    for _ in 0..16u8 {
        for _ in 0..255u8 {
            unsafe { nop(); }
        }
    }
}

This emits:
image

When imo it should emit something more like

image

Let me know if this isn't possible and feel free to close, but I thought I should mention it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions