[llvm-commits] [poolalloc] r57263 - /poolalloc/trunk/lib/DSA/StdLibPass.cpp
John Criswell
criswell at uiuc.edu
Tue Oct 7 14:23:45 PDT 2008
Author: criswell
Date: Tue Oct 7 16:23:44 2008
New Revision: 57263
URL: http://llvm.org/viewvc/llvm-project?rev=57263&view=rev
Log:
When collapsing the DSNodes of return values and parameters, ensure that we
only collapse the return value if it is, in fact, a pointer.
Modified:
poolalloc/trunk/lib/DSA/StdLibPass.cpp
Modified: poolalloc/trunk/lib/DSA/StdLibPass.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/StdLibPass.cpp?rev=57263&r1=57262&r2=57263&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/StdLibPass.cpp (original)
+++ poolalloc/trunk/lib/DSA/StdLibPass.cpp Tue Oct 7 16:23:44 2008
@@ -151,7 +151,8 @@
toMerge[0].mergeWith(toMerge[y]);
if (recFuncs[x].action.collapse) {
- Graph.getNodeForValue(CI).getNode()->foldNodeCompletely();
+ if (isa<PointerType>(CI->getType()))
+ Graph.getNodeForValue(CI).getNode()->foldNodeCompletely();
for (unsigned y = 1; y < CI->getNumOperands(); ++y)
if (isa<PointerType>(CI->getOperand(y)->getType()))
if (DSNode * Node=Graph.getNodeForValue(CI->getOperand(y)).getNode())
More information about the llvm-commits
mailing list