[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Local.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Feb 8 14:19:01 PST 2003
Changes in directory llvm/lib/Analysis/DataStructure:
Local.cpp updated: 1.47 -> 1.48
---
Log message:
Add a flag which effectively disables field sensitivity
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.47 llvm/lib/Analysis/DataStructure/Local.cpp:1.48
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.47 Wed Feb 5 15:59:56 2003
+++ llvm/lib/Analysis/DataStructure/Local.cpp Sat Feb 8 14:18:39 2003
@@ -50,6 +50,9 @@
DisableDirectCallOpt("disable-direct-call-dsopt", cl::Hidden,
cl::desc("Disable direct call optimization in "
"DSGraph construction"));
+ cl::opt<bool>
+ DisableFieldSensitivity("disable-ds-field-sensitivity", cl::Hidden,
+ cl::desc("Disable field sensitivity in DSGraphs"));
//===--------------------------------------------------------------------===//
// GraphBuilder Class
@@ -108,6 +111,8 @@
DSNode *createNode(DSNode::NodeTy NodeType, const Type *Ty = 0) {
DSNode *N = new DSNode(NodeType, Ty); // Create the node
Nodes.push_back(N); // Add node to nodes list
+ if (DisableFieldSensitivity)
+ N->foldNodeCompletely();
return N;
}
More information about the llvm-commits
mailing list