summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2011-01-23 05:11:18 +0000
committerCameron Zwarich <zwarich@apple.com>2011-01-23 05:11:18 +0000
commitac5a95b68b008e5f5a3efd829b32e3d7fcf8c0be (patch)
tree89cfe0ae2d7db18d5c80517dd54827b95135f859 /llvm
parent652696fc1368b877427bbd29500ecd47fd6fb461 (diff)
downloadbcm5719-llvm-ac5a95b68b008e5f5a3efd829b32e3d7fcf8c0be.tar.gz
bcm5719-llvm-ac5a95b68b008e5f5a3efd829b32e3d7fcf8c0be.zip
Remove useless struct fields.
llvm-svn: 124058
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Analysis/DominatorInternals.h6
-rw-r--r--llvm/include/llvm/Analysis/Dominators.h6
2 files changed, 2 insertions, 10 deletions
diff --git a/llvm/include/llvm/Analysis/DominatorInternals.h b/llvm/include/llvm/Analysis/DominatorInternals.h
index 6f66580025c..7f468836d2d 100644
--- a/llvm/include/llvm/Analysis/DominatorInternals.h
+++ b/llvm/include/llvm/Analysis/DominatorInternals.h
@@ -43,8 +43,6 @@ unsigned DFSPass(DominatorTreeBase<typename GraphT::NodeType>& DT,
Vertex.push_back(V); // Vertex[n] = V;
//Info[V].Ancestor = 0; // Ancestor[n] = 0
- //Info[V].Child = 0; // Child[v] = 0
- VInfo.Size = 1; // Size[v] = 1
for (succ_iterator SI = succ_begin(V), E = succ_end(V); SI != E; ++SI) {
InfoRec &SuccVInfo = DT.Info[*SI];
@@ -73,8 +71,6 @@ unsigned DFSPass(DominatorTreeBase<typename GraphT::NodeType>& DT,
DT.Vertex.push_back(BB); // Vertex[n] = V;
//BBInfo[V].Ancestor = 0; // Ancestor[n] = 0
- //BBInfo[V].Child = 0; // Child[v] = 0
- BBInfo.Size = 1; // Size[v] = 1
if (IsChildOfArtificialExit)
BBInfo.Parent = 1;
@@ -174,8 +170,6 @@ void Calculate(DominatorTreeBase<typename GraphTraits<NodeT>::NodeType>& DT,
DT.Vertex.push_back(NULL); // Vertex[n] = V;
//BBInfo[V].Ancestor = 0; // Ancestor[n] = 0
- //BBInfo[V].Child = 0; // Child[v] = 0
- BBInfo.Size = 1; // Size[v] = 1
}
// Step #1: Number blocks in depth-first order and initialize variables used
diff --git a/llvm/include/llvm/Analysis/Dominators.h b/llvm/include/llvm/Analysis/Dominators.h
index d8a254c7f9f..133e1231f98 100644
--- a/llvm/include/llvm/Analysis/Dominators.h
+++ b/llvm/include/llvm/Analysis/Dominators.h
@@ -196,12 +196,10 @@ protected:
struct InfoRec {
unsigned DFSNum;
unsigned Semi;
- unsigned Size;
- NodeT *Label, *Child;
+ NodeT *Label;
unsigned Parent, Ancestor;
- InfoRec() : DFSNum(0), Semi(0), Size(0), Label(0), Child(0), Parent(0),
- Ancestor(0) {}
+ InfoRec() : DFSNum(0), Semi(0), Label(0), Parent(0), Ancestor(0) {}
};
DenseMap<NodeT*, NodeT*> IDoms;
OpenPOWER on IntegriCloud