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

Chris Lattner lattner at cs.uiuc.edu
Fri Mar 18 15:18:36 PST 2005



Changes in directory llvm/lib/Analysis/DataStructure:

Local.cpp updated: 1.126 -> 1.127
---
Log message:

another fastpath


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

 Local.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.126 llvm/lib/Analysis/DataStructure/Local.cpp:1.127
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.126	Mon Mar 14 22:54:18 2005
+++ llvm/lib/Analysis/DataStructure/Local.cpp	Fri Mar 18 17:18:20 2005
@@ -349,7 +349,8 @@
 
   // If all of the indices are zero, the result points to the operand without
   // applying the type.
-  if (AllZeros) {
+  if (AllZeros || (!Value.isNull() &&
+                   Value.getNode()->isNodeCompletelyFolded())) {
     setDestTo(GEP, Value);
     return;
   }






More information about the llvm-commits mailing list