aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-01 01:26:53 +0000
committerChris Lattner <sabre@nondot.org>2002-04-01 01:26:53 +0000
commitf8285d4d8f74dff1efd6edf283bbe30bd63e7854 (patch)
treea57cc0e953c8b21119bc22b01412dbb56bc62318
parentf7196949bb5743b12e4d2a694cb377c4363bda9f (diff)
Allow scalars that point to multiple nodes when building the scalar map.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2087 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/IPO/OldPoolAllocate.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Transforms/IPO/OldPoolAllocate.cpp b/lib/Transforms/IPO/OldPoolAllocate.cpp
index b064513ae3..5dcf825070 100644
--- a/lib/Transforms/IPO/OldPoolAllocate.cpp
+++ b/lib/Transforms/IPO/OldPoolAllocate.cpp
@@ -443,9 +443,6 @@ void PoolAllocate::transformFunctionBody(Function *F, FunctionDSGraph &IPFGraph,
cerr << "Scalar Mapping from:"; I->first->dump();
cerr << "\nScalar Mapping to: "; PVS.print(cerr);
- assert(PVS.size() == 1 &&
- "Only handle scalars that point to one thing so far!");
-
// Check to see if the scalar points to a data structure node...
for (unsigned i = 0, e = PVS.size(); i != e; ++i) {
assert(PVS[i].Index == 0 && "Nonzero not handled yet!");
@@ -576,8 +573,6 @@ static void addNodeMapping(DSNode *SrcNode, const PointerValSet &PVS,
for (unsigned l = 0, le = DestNode->getNumOutgoingLinks(); l != le; ++l) {
PointerValSet &SrcSet = SrcNode->getOutgoingLink(l);
const PointerValSet &DestSet = DestNode->getOutgoingLink(l);
- assert((!SrcSet.empty() || DestSet.empty()) &&
- "Dest graph should be a proper subset of the src graph!");
// Add all of the node mappings now!
for (unsigned si = 0, se = SrcSet.size(); si != se; ++si) {