Use > instead of >=. We want to promote aggregates of 128-bytes.
[oota-llvm.git] / lib / Transforms / Scalar / ScalarReplAggregates.cpp
index ee4b87227aedb8702271c3457c50780da32cbbff..93830b1f51ee57469230c6b57647d56a1a018a42 100644 (file)
@@ -255,7 +255,7 @@ bool SROA::performScalarRepl(Function &F) {
     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())) &&