From a190766a54b7eebd199167e3e92d3f3b35dd7b4b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 13 Nov 2003 03:10:49 +0000 Subject: [PATCH] Disable integer tracking by default git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9960 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DataStructure/Local.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/Analysis/DataStructure/Local.cpp b/lib/Analysis/DataStructure/Local.cpp index a7b2579612d..79f392078a1 100644 --- a/lib/Analysis/DataStructure/Local.cpp +++ b/lib/Analysis/DataStructure/Local.cpp @@ -33,13 +33,18 @@ using namespace llvm; static RegisterAnalysis X("datastructure", "Local Data Structure Analysis"); +static cl::opt +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(Ty)) return true; - else if (Ty->isPrimitiveType() && Ty->isInteger()) + else if (TrackIntegersAsPointers && Ty->isPrimitiveType() &&Ty->isInteger()) return Ty->getPrimitiveSize() >= PointerSize; return false; } -- 2.34.1