diff options
| author | Joerg Sonnenberger <joerg@bec.de> | 2011-12-18 20:35:43 +0000 |
|---|---|---|
| committer | Joerg Sonnenberger <joerg@bec.de> | 2011-12-18 20:35:43 +0000 |
| commit | d6cb7649d8827f6ac9602f95482c3ed2bca93100 (patch) | |
| tree | 7cccd952712204ff05ac2c62781a56ccb725d3a4 /llvm/lib/CodeGen/StackSlotColoring.cpp | |
| parent | 530b820500984764a37d4a2fed68eb75e9f7693c (diff) | |
| download | bcm5719-llvm-d6cb7649d8827f6ac9602f95482c3ed2bca93100.tar.gz bcm5719-llvm-d6cb7649d8827f6ac9602f95482c3ed2bca93100.zip | |
Allow inlining of functions with returns_twice calls, if they have the
attribute themselve.
llvm-svn: 146851
Diffstat (limited to 'llvm/lib/CodeGen/StackSlotColoring.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/StackSlotColoring.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StackSlotColoring.cpp b/llvm/lib/CodeGen/StackSlotColoring.cpp index f8177a228ce..ae3fa2acb79 100644 --- a/llvm/lib/CodeGen/StackSlotColoring.cpp +++ b/llvm/lib/CodeGen/StackSlotColoring.cpp @@ -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 |

