summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-22 03:03:52 +0000
committerChris Lattner <sabre@nondot.org>2003-06-22 03:03:52 +0000
commitd791d8e427a96ab3893573fb71f266bbb727438b (patch)
tree90259aa6ef558e2f33b4ea7a947dfc0246e9c249 /llvm/lib/Analysis/DataStructure/DataStructure.cpp
parent09ede5c9366a52336eedd80e70f171da97d7bd17 (diff)
downloadbcm5719-llvm-d791d8e427a96ab3893573fb71f266bbb727438b.tar.gz
bcm5719-llvm-d791d8e427a96ab3893573fb71f266bbb727438b.zip
Remove support for the MultiObject flag, which was fundamentally broken
llvm-svn: 6840
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r--llvm/lib/Analysis/DataStructure/DataStructure.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/Analysis/DataStructure/DataStructure.cpp b/llvm/lib/Analysis/DataStructure/DataStructure.cpp
index 9e00860365b..2f64eb074ce 100644
--- a/llvm/lib/Analysis/DataStructure/DataStructure.cpp
+++ b/llvm/lib/Analysis/DataStructure/DataStructure.cpp
@@ -68,12 +68,6 @@ void DSNode::assertOK() const {
Ty == Type::VoidTy && (Size == 0 ||
(NodeType & DSNode::Array))) &&
"Node not OK!");
-
- // Check to ensure that the multiobject constraints are met...
- unsigned Comp = NodeType & DSNode::Composition;
- assert((NodeType & DSNode::MultiObject) ||
- Comp == 0 || Comp == DSNode::AllocaNode || Comp == DSNode::HeapNode ||
- Comp == DSNode::GlobalNode || Comp == DSNode::UnknownNode);
}
/// forwardNode - Mark this node as being obsolete, and all references to it
@@ -103,8 +97,6 @@ void DSNode::addGlobal(GlobalValue *GV) {
if (I == Globals.end() || *I != GV) {
//assert(GV->getType()->getElementType() == Ty);
Globals.insert(I, GV);
- if (NodeType & DSNode::Composition)
- NodeType |= DSNode::MultiObject;
NodeType |= GlobalNode;
}
}
@@ -483,9 +475,6 @@ void DSNode::MergeNodes(DSNodeHandle& CurNodeH, DSNodeHandle& NH) {
assert(!CurNodeH.getNode()->isDeadNode());
// Merge the NodeType information...
- if ((CurNodeH.getNode()->NodeType & DSNode::Composition) != 0 &&
- (N->NodeType & DSNode::Composition) != 0)
- N->NodeType |= DSNode::MultiObject; // Multiple composition -> multiobject
CurNodeH.getNode()->NodeType |= N->NodeType;
// Start forwarding to the new node!
OpenPOWER on IntegriCloud