From: Evan Cheng Date: Fri, 6 Mar 2009 00:56:43 +0000 (+0000) Subject: SRThreshold is meant to be inclusive. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=67fca63da267da491de9526b09a7de0a2e99ece2;p=oota-llvm.git SRThreshold is meant to be inclusive. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66227 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/lib/Transforms/Scalar/ScalarReplAggregates.cpp index 441b448c010..710bdfb6f7e 100644 --- a/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/lib/Transforms/Scalar/ScalarReplAggregates.cpp @@ -260,7 +260,7 @@ bool SROA::performScalarRepl(Function &F) { if ((isa(AI->getAllocatedType()) || isa(AI->getAllocatedType())) && // Do not promote any struct into more than "32" separate vars. - getNumSAElements(AI->getAllocatedType()) < SRThreshold/4) { + getNumSAElements(AI->getAllocatedType()) <= SRThreshold/4) { // Check that all of the users of the allocation are capable of being // transformed. switch (isSafeAllocaToScalarRepl(AI)) {