[llvm-commits] CVS: llvm/lib/VMCore/Type.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Sep 2 17:53:01 PDT 2003


Changes in directory llvm/lib/VMCore:

Type.cpp updated: 1.58 -> 1.59

---
Log message:

Another small speedup, this one to: 2.42s


---
Diffs of the changes:

Index: llvm/lib/VMCore/Type.cpp
diff -u llvm/lib/VMCore/Type.cpp:1.58 llvm/lib/VMCore/Type.cpp:1.59
--- llvm/lib/VMCore/Type.cpp:1.58	Tue Sep  2 17:50:02 2003
+++ llvm/lib/VMCore/Type.cpp	Tue Sep  2 17:52:49 2003
@@ -429,8 +429,8 @@
 void DerivedType::setDerivedTypeProperties() {
   // If the type is currently thought to be abstract, rescan all of our subtypes
   // to see if the type has just become concrete!
-  setAbstract(true);
-  setAbstract(isTypeAbstract());
+  if (isAbstract())
+    setAbstract(isTypeAbstract());
 }
 
 





More information about the llvm-commits mailing list