[llvm-commits] [poolalloc] r121707 - /poolalloc/trunk/lib/DSA/DSGraph.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Mon Dec 13 11:18:02 PST 2010
Author: aggarwa4
Date: Mon Dec 13 13:18:02 2010
New Revision: 121707
URL: http://llvm.org/viewvc/llvm-project?rev=121707&view=rev
Log:
As per getValueDest that creates DSNodes,
there is no DSNode for Constant Null Values. Perform
the same check here too.
Modified:
poolalloc/trunk/lib/DSA/DSGraph.cpp
Modified: poolalloc/trunk/lib/DSA/DSGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/DSGraph.cpp?rev=121707&r1=121706&r2=121707&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/DSGraph.cpp (original)
+++ poolalloc/trunk/lib/DSA/DSGraph.cpp Mon Dec 13 13:18:02 2010
@@ -69,6 +69,9 @@
// Undef values, even ones of pointer type, don't get nodes.
if (isa<UndefValue>(V)) return false;
+ if (isa<Constant>(V) && cast<Constant>(V)->isNullValue())
+ return false;
+
// Use the Aliasee of GlobalAliases
// FIXME: This check might not be required, it's here because
// something similar is done in the Local pass.
More information about the llvm-commits
mailing list