From ca3f790f71345ca53f1cdc9a986eeb40140a035b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 8 Feb 2003 20:18:39 +0000 Subject: [PATCH] Add a flag which effectively disables field sensitivity git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5506 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DataStructure/Local.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Analysis/DataStructure/Local.cpp b/lib/Analysis/DataStructure/Local.cpp index d56ad01f0ae..559d79aa8fa 100644 --- a/lib/Analysis/DataStructure/Local.cpp +++ b/lib/Analysis/DataStructure/Local.cpp @@ -50,6 +50,9 @@ namespace { DisableDirectCallOpt("disable-direct-call-dsopt", cl::Hidden, cl::desc("Disable direct call optimization in " "DSGraph construction")); + cl::opt + DisableFieldSensitivity("disable-ds-field-sensitivity", cl::Hidden, + cl::desc("Disable field sensitivity in DSGraphs")); //===--------------------------------------------------------------------===// // GraphBuilder Class @@ -108,6 +111,8 @@ namespace { 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; } -- 2.34.1