summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-12-06 07:38:40 +0000
committerChris Lattner <sabre@nondot.org>2010-12-06 07:38:40 +0000
commit5b6a865f2e6e7258c2b544ea303aeeb2486d1d69 (patch)
treedef6363f8cad20e358e5d6f29458b253d738347a
parentd0a300162ebea20706866399c82adfe5abf6d924 (diff)
downloadbcm5719-llvm-5b6a865f2e6e7258c2b544ea303aeeb2486d1d69.tar.gz
bcm5719-llvm-5b6a865f2e6e7258c2b544ea303aeeb2486d1d69.zip
improve -debug output and comments a little.
llvm-svn: 120993
-rw-r--r--llvm/lib/Transforms/IPO/Inliner.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/Inliner.cpp b/llvm/lib/Transforms/IPO/Inliner.cpp
index 55f2815461a..0d6b39f8760 100644
--- a/llvm/lib/Transforms/IPO/Inliner.cpp
+++ b/llvm/lib/Transforms/IPO/Inliner.cpp
@@ -153,19 +153,21 @@ static bool InlineCallIfPossible(CallSite CS, InlineFunctionInfo &IFI,
// Otherwise, we *can* reuse it, RAUW AI into AvailableAlloca and declare
// success!
- DEBUG(dbgs() << " ***MERGED ALLOCA: " << *AI);
+ DEBUG(dbgs() << " ***MERGED ALLOCA: " << *AI << "\n\t\tINTO: "
+ << *AvailableAlloca << '\n');
AI->replaceAllUsesWith(AvailableAlloca);
AI->eraseFromParent();
MergedAwayAlloca = true;
++NumMergedAllocas;
+ IFI.StaticAllocas[AllocaNo] = 0;
break;
}
// If we already nuked the alloca, we're done with it.
if (MergedAwayAlloca)
continue;
-
+
// If we were unable to merge away the alloca either because there are no
// allocas of the right type available or because we reused them all
// already, remember that this alloca came from an inlined function and mark
@@ -402,7 +404,7 @@ bool Inliner::runOnSCC(CallGraphSCC &SCC) {
// If this call site was obtained by inlining another function, verify
// 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
// infinitely inline.
int InlineHistoryID = CallSites[CSi].second;
OpenPOWER on IntegriCloud