mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +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:
@ -31,8 +31,9 @@ namespace llvm {
|
||||
/// caller.
|
||||
// bool NeverInline;
|
||||
|
||||
// True if this function contains a call to setjmp or _setjmp
|
||||
bool callsSetJmp;
|
||||
// True if this function contains a call to setjmp or other functions
|
||||
// with attribute "returns twice" without having the attribute by itself.
|
||||
bool exposesReturnsTwice;
|
||||
|
||||
// True if this function calls itself
|
||||
bool isRecursive;
|
||||
@ -66,7 +67,7 @@ namespace llvm {
|
||||
/// NumRets - Keep track of how many Ret instructions the block contains.
|
||||
unsigned NumRets;
|
||||
|
||||
CodeMetrics() : callsSetJmp(false), isRecursive(false),
|
||||
CodeMetrics() : exposesReturnsTwice(false), isRecursive(false),
|
||||
containsIndirectBr(false), usesDynamicAlloca(false),
|
||||
NumInsts(0), NumBlocks(0), NumCalls(0),
|
||||
NumInlineCandidates(0), NumVectorInsts(0),
|
||||
|
Reference in New Issue
Block a user