diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp index ee4b87227ae..93830b1f51e 100644 --- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp @@ -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())) && | 

