Skip to content

Assertion `TFI->hasReservedCallFrame(MF) && "Cannot use SP to access the emergency spill slot in " "functions without a reserved call frame"' failed. #98113

Open
@thevinster

Description

@thevinster

I'm debugging a crash that's happening in the Prologue/Epilogue Insertion & Frame Finalization backend with an assertion failure of the following:

virtual bool llvm::ARMBaseRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator, int, unsigned int, RegScavenger *) const: Assertion `TFI->hasReservedCallFrame(MF) && "Cannot use SP to access the emergency spill slot in " "functions without a reserved call frame"' failed.

I'm able to reduce the crash to this IR (Godbolt:https://godbolt.org/z/nrrd33YPW). Running llc on this file with -O0 on this input crashes on both LLVM main and on release/18.x.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions