[llvm-commits] [poolalloc] r113471 - /poolalloc/trunk/lib/DSA/Local.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Wed Sep 8 21:01:29 PDT 2010
Author: aggarwa4
Date: Wed Sep 8 23:01:29 2010
New Revision: 113471
URL: http://llvm.org/viewvc/llvm-project?rev=113471&view=rev
Log:
Comment Change. No functionality changed
Modified:
poolalloc/trunk/lib/DSA/Local.cpp
Modified: poolalloc/trunk/lib/DSA/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/Local.cpp?rev=113471&r1=113470&r2=113471&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/Local.cpp (original)
+++ poolalloc/trunk/lib/DSA/Local.cpp Wed Sep 8 23:01:29 2010
@@ -904,9 +904,12 @@
}
//NOTE: This code is identical to 'DSGraph::getDSCallSiteForCallSite',
- //the reason it's duplicated apparently is so we can increment the
- //stats 'NumIndirectCall' and 'NumDirectCall'.
- //FIXME: refactor so we don't have this duplication
+ //the reason it's duplicated is so because this calls getValueDest,
+ //instead of getNodeForValue. Possibly because a DS node may not exist
+ //at this time, in which case getNodeForValue, creates the node, unlike
+ // getNodeForValue.
+
+ //FIXME: refactor so we don't have this duplication.
//Get the FunctionType for the called function
const FunctionType *CalleeFuncType = DSCallSite::FunctionTypeOfCallSite(CS);
More information about the llvm-commits
mailing list