mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Allow inlining of functions with returns_twice calls, if they have the
attribute themselve. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146851 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -426,7 +426,7 @@ bool StackSlotColoring::runOnMachineFunction(MachineFunction &MF) {
|
||||
// coloring. The stack could be modified before the longjmp is executed,
|
||||
// resulting in the wrong value being used afterwards. (See
|
||||
// <rdar://problem/8007500>.)
|
||||
if (MF.callsSetJmp())
|
||||
if (MF.exposesReturnsTwice())
|
||||
return false;
|
||||
|
||||
// Gather spill slot references
|
||||
|
Reference in New Issue
Block a user