[llvm-commits] [poolalloc] r72397 - /poolalloc/trunk/lib/DSA/Local.cpp
Haohui Mai
mai4 at uiuc.edu
Mon May 25 13:57:02 PDT 2009
Author: mai4
Date: Mon May 25 15:57:01 2009
New Revision: 72397
URL: http://llvm.org/viewvc/llvm-project?rev=72397&view=rev
Log:
Preliminary handling of global aliases.
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=72397&r1=72396&r2=72397&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/Local.cpp (original)
+++ poolalloc/trunk/lib/DSA/Local.cpp Mon May 25 15:57:01 2009
@@ -216,7 +216,12 @@
} else if (isa<UndefValue>(C)) {
G.eraseNodeForValue(V);
return 0;
+ } else if (isa<GlobalAlias>(C)) {
+ // XXX: Need more investigation
+ NH = getValueDest(*(dynamic_cast<GlobalAlias*>(C)->getAliasee()));
+ return 0;
} else {
+ llvm::cerr << "Unknown constant: " << *C << std::endl;
assert(0 && "Unknown constant type!");
}
N = createNode(); // just create a shadow node
@@ -335,8 +340,8 @@
}
void GraphBuilder::visitIntToPtrInst(IntToPtrInst &I) {
- std::cerr << "cast in " << I.getParent()->getParent()->getName() << "\n";
- I.dump();
+// std::cerr << "cast in " << I.getParent()->getParent()->getName() << "\n";
+// I.dump();
setDestTo(I, createNode()->setUnknownMarker()->setIntToPtrMarker());
}
More information about the llvm-commits
mailing list