mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 02:33:53 +00:00
Use ClonedCodeInfo to avoid another walk over the inlined code, this this
time in common C cases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25285 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
727d1dd587
commit
1fdf4a859f
@ -215,8 +215,10 @@ bool llvm::InlineFunction(CallSite CS) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we are inlining tail call instruction through an invoke or
|
// If we are inlining tail call instruction through a call site that isn't
|
||||||
if (MustClearTailCallFlags) {
|
// marked 'tail', we must remove the tail marker for any calls in the inlined
|
||||||
|
// code.
|
||||||
|
if (MustClearTailCallFlags && InlinedFunctionInfo.ContainsCalls) {
|
||||||
for (Function::iterator BB = FirstNewBlock, E = Caller->end();
|
for (Function::iterator BB = FirstNewBlock, E = Caller->end();
|
||||||
BB != E; ++BB)
|
BB != E; ++BB)
|
||||||
for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ++I)
|
for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ++I)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user