mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
improve -debug output and comments a little.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120993 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
476d2f769e
commit
7d32b8032d
@ -153,12 +153,14 @@ static bool InlineCallIfPossible(CallSite CS, InlineFunctionInfo &IFI,
|
|||||||
|
|
||||||
// Otherwise, we *can* reuse it, RAUW AI into AvailableAlloca and declare
|
// Otherwise, we *can* reuse it, RAUW AI into AvailableAlloca and declare
|
||||||
// success!
|
// success!
|
||||||
DEBUG(dbgs() << " ***MERGED ALLOCA: " << *AI);
|
DEBUG(dbgs() << " ***MERGED ALLOCA: " << *AI << "\n\t\tINTO: "
|
||||||
|
<< *AvailableAlloca << '\n');
|
||||||
|
|
||||||
AI->replaceAllUsesWith(AvailableAlloca);
|
AI->replaceAllUsesWith(AvailableAlloca);
|
||||||
AI->eraseFromParent();
|
AI->eraseFromParent();
|
||||||
MergedAwayAlloca = true;
|
MergedAwayAlloca = true;
|
||||||
++NumMergedAllocas;
|
++NumMergedAllocas;
|
||||||
|
IFI.StaticAllocas[AllocaNo] = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -402,7 +404,7 @@ bool Inliner::runOnSCC(CallGraphSCC &SCC) {
|
|||||||
|
|
||||||
// If this call site was obtained by inlining another function, verify
|
// If this call site was obtained by inlining another function, verify
|
||||||
// that the include path for the function did not include the callee
|
// that the include path for the function did not include the callee
|
||||||
// itself. If so, we'd be recursively inlinling the same function,
|
// itself. If so, we'd be recursively inlining the same function,
|
||||||
// which would provide the same callsites, which would cause us to
|
// which would provide the same callsites, which would cause us to
|
||||||
// infinitely inline.
|
// infinitely inline.
|
||||||
int InlineHistoryID = CallSites[CSi].second;
|
int InlineHistoryID = CallSites[CSi].second;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user