commit | 8a1aae4094fc633c9f32525a2e97a92bbedb645d | [log] [tgz] |
---|---|---|
author | Bill Wendling <isanbard@gmail.com> | Tue Mar 03 19:18:49 2009 +0000 |
committer | Bill Wendling <isanbard@gmail.com> | Tue Mar 03 19:18:49 2009 +0000 |
tree | fc94f927b768f0fb8f4f7c345c8a496238957174 | |
parent | e33c7d477f43b90a2bc714abfb61f21add2050f8 [diff] [blame] |
Use > instead of >=. We want to promote aggregates of 128-bytes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65960 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp index ee4b872..93830b1 100644 --- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/lib/Transforms/Scalar/ScalarReplAggregates.cpp
@@ -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())) &&