summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DataStructure/Local.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-13 03:10:49 +0000
committerChris Lattner <sabre@nondot.org>2003-11-13 03:10:49 +0000
commitfb4c057c4c878e8df71c37e32c4baee2ed531a73 (patch)
tree198e726791ecd78762384dc9defe464bdf68f5f6 /llvm/lib/Analysis/DataStructure/Local.cpp
parent97cf7cf400cac96330629d6d71e3e48ce74587dd (diff)
downloadbcm5719-llvm-fb4c057c4c878e8df71c37e32c4baee2ed531a73.tar.gz
bcm5719-llvm-fb4c057c4c878e8df71c37e32c4baee2ed531a73.zip
Disable integer tracking by default
llvm-svn: 9960
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/Local.cpp')
-rw-r--r--llvm/lib/Analysis/DataStructure/Local.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp
index a7b2579612d..79f392078a1 100644
--- a/llvm/lib/Analysis/DataStructure/Local.cpp
+++ b/llvm/lib/Analysis/DataStructure/Local.cpp
@@ -33,13 +33,18 @@ using namespace llvm;
static RegisterAnalysis<LocalDataStructures>
X("datastructure", "Local Data Structure Analysis");
+static cl::opt<bool>
+TrackIntegersAsPointers("dsa-track-integers",
+ cl::desc("If this is set, track integers as potential pointers"));
+
+
namespace llvm {
namespace DS {
// isPointerType - Return true if this type is big enough to hold a pointer.
bool isPointerType(const Type *Ty) {
if (isa<PointerType>(Ty))
return true;
- else if (Ty->isPrimitiveType() && Ty->isInteger())
+ else if (TrackIntegersAsPointers && Ty->isPrimitiveType() &&Ty->isInteger())
return Ty->getPrimitiveSize() >= PointerSize;
return false;
}
OpenPOWER on IntegriCloud