[llvm-commits] [llvm] r65959 - /llvm/branches/Apple/Dib/lib/Transforms/Scalar/ScalarReplAggregates.cpp

Bill Wendling isanbard at gmail.com
Tue Mar 3 11:18:20 PST 2009


Author: void
Date: Tue Mar  3 13:18:19 2009
New Revision: 65959

URL: http://llvm.org/viewvc/llvm-project?rev=65959&view=rev
Log:
Use > instead of >=. We want to promote aggregates of 128-bytes.

Modified:
    llvm/branches/Apple/Dib/lib/Transforms/Scalar/ScalarReplAggregates.cpp

Modified: llvm/branches/Apple/Dib/lib/Transforms/Scalar/ScalarReplAggregates.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/lib/Transforms/Scalar/ScalarReplAggregates.cpp?rev=65959&r1=65958&r2=65959&view=diff

==============================================================================
--- llvm/branches/Apple/Dib/lib/Transforms/Scalar/ScalarReplAggregates.cpp (original)
+++ llvm/branches/Apple/Dib/lib/Transforms/Scalar/ScalarReplAggregates.cpp Tue Mar  3 13:18:19 2009
@@ -255,7 +255,7 @@
     uint64_t AllocaSize = TD->getTypePaddedSize(AI->getAllocatedType());
 
     // Do not promote any struct whose size is too big.
-    if (AllocaSize >= SRThreshold) continue;
+    if (AllocaSize > SRThreshold) continue;
         
     if ((isa<StructType>(AI->getAllocatedType()) ||
          isa<ArrayType>(AI->getAllocatedType())) &&





More information about the llvm-commits mailing list