[llvm-commits] [poolalloc] r57533 - /poolalloc/trunk/lib/DSA/BottomUpClosure.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Tue Oct 14 15:51:02 PDT 2008
Author: alenhar2
Date: Tue Oct 14 17:51:02 2008
New Revision: 57533
URL: http://llvm.org/viewvc/llvm-project?rev=57533&view=rev
Log:
just because the Globals graph has the pointer doesn't mean it has a call site for that pointer
Modified:
poolalloc/trunk/lib/DSA/BottomUpClosure.cpp
Modified: poolalloc/trunk/lib/DSA/BottomUpClosure.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/BottomUpClosure.cpp?rev=57533&r1=57532&r2=57533&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/BottomUpClosure.cpp (original)
+++ poolalloc/trunk/lib/DSA/BottomUpClosure.cpp Tue Oct 14 17:51:02 2008
@@ -360,8 +360,10 @@
if (GGii->getCallSite().getInstruction()->getOperand(0) ==
ii->getCallSite().getInstruction()->getOperand(0))
break;
- assert (GGii != GG.afc_end() && "Callsite should exist but doesn't");
- RC.cloneCallSite(*ii).mergeWith(*GGii);
+ if (GGii != GG.afc_end())
+ RC.cloneCallSite(*ii).mergeWith(*GGii);
+ else
+ GG.getAuxFunctionCalls().push_front(RC.cloneCallSite(*ii));
} else {
GG.getAuxFunctionCalls().push_front(RC.cloneCallSite(*ii));
}
More information about the llvm-commits
mailing list