[llvm-commits] CVS: llvm/lib/Transforms/IPO/GlobalOpt.cpp

Reid Spencer reid at x10sys.com
Sat Jan 20 16:30:05 PST 2007



Changes in directory llvm/lib/Transforms/IPO:

GlobalOpt.cpp updated: 1.87 -> 1.88
---
Log message:

For PR970: http://llvm.org/PR970 :
Clean up handling of isFloatingPoint() and dealing with PackedType.
Patch by Gordon Henriksen!


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

 GlobalOpt.cpp |    1 +
 1 files changed, 1 insertion(+)


Index: llvm/lib/Transforms/IPO/GlobalOpt.cpp
diff -u llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.87 llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.88
--- llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.87	Fri Jan 12 12:30:11 2007
+++ llvm/lib/Transforms/IPO/GlobalOpt.cpp	Sat Jan 20 18:29:25 2007
@@ -1343,6 +1343,7 @@
       if (Constant *SOVConstant = dyn_cast<Constant>(GS.StoredOnceValue))
         if (GV->getType()->getElementType() != Type::Int1Ty &&
             !GV->getType()->getElementType()->isFloatingPoint() &&
+            !isa<PackedType>(GV->getType()->getElementType()) &&
             !GS.HasPHIUser) {
           DOUT << "   *** SHRINKING TO BOOL: " << *GV;
           ShrinkGlobalToBoolean(GV, SOVConstant);






More information about the llvm-commits mailing list