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

Chris Lattner lattner at cs.uiuc.edu
Sat Oct 16 11:16:12 PDT 2004



Changes in directory llvm/lib/Analysis/DataStructure:

Local.cpp updated: 1.113 -> 1.114
---
Log message:

Add support for undef


---
Diffs of the changes:  (+3 -0)

Index: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.113 llvm/lib/Analysis/DataStructure/Local.cpp:1.114
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.113	Wed Oct  6 14:29:13 2004
+++ llvm/lib/Analysis/DataStructure/Local.cpp	Sat Oct 16 13:16:01 2004
@@ -246,6 +246,9 @@
     } else if (ConstantIntegral *CI = dyn_cast<ConstantIntegral>(C)) {
       // Random constants are unknown mem
       return NH = createNode()->setUnknownNodeMarker();
+    } else if (isa<UndefValue>(C)) {
+      ScalarMap.erase(V);
+      return 0;
     } else {
       assert(0 && "Unknown constant type!");
     }






More information about the llvm-commits mailing list