Issue 98113
Summary Assertion `TFI->hasReservedCallFrame(MF) && "Cannot use SP to access the emergency spill slot in " "functions without a reserved call frame"' failed.
Labels llvm:codegen, llvm:crash
Assignees
Reporter 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](https://gist.github.com/thevinster/8eed8d9ac10986b13d24866db874d4b3). Running `llc` on this file with `-O0` on this input crashes on both LLVM main and on release/18.x. 
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to