[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Local.cpp

Andrew Lenharth alenhar2 at cs.uiuc.edu
Tue Nov 7 12:39:32 PST 2006



Changes in directory llvm/lib/Analysis/DataStructure:

Local.cpp updated: 1.158 -> 1.159
---
Log message:

Optionally allow comparison operations from affect DSGraphs

---
Diffs of the changes:  (+6 -1)

 Local.cpp |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletion(-)


Index: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.158 llvm/lib/Analysis/DataStructure/Local.cpp:1.159
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.158	Fri Nov  3 11:43:19 2006
+++ llvm/lib/Analysis/DataStructure/Local.cpp	Tue Nov  7 14:39:05 2006
@@ -40,6 +40,10 @@
 TrackIntegersAsPointers("dsa-track-integers", cl::Hidden,
          cl::desc("If this is set, track integers as potential pointers"));
 
+static cl::opt<bool>
+IgnoreSetCC("dsa-ignore-setcc", cl::Hidden,
+         cl::desc("If this is set, do nothing at pointer comparisons"));
+
 static cl::list<std::string>
 AllocList("dsa-alloc-list",
           cl::value_desc("list"),
@@ -336,7 +340,8 @@
 void GraphBuilder::visitSetCondInst(SetCondInst &SCI) {
   if (!isPointerType(SCI.getOperand(0)->getType()) ||
       isa<ConstantPointerNull>(SCI.getOperand(1))) return; // Only pointers
-  ScalarMap[SCI.getOperand(0)].mergeWith(getValueDest(*SCI.getOperand(1)));
+  if(!IgnoreSetCC)
+    ScalarMap[SCI.getOperand(0)].mergeWith(getValueDest(*SCI.getOperand(1)));
 }
 
 






More information about the llvm-commits mailing list