forked from OSchip/llvm-project
parent
62d9de7cae
commit
5fd4fc76bf
|
@ -260,7 +260,7 @@ bool SROA::performScalarRepl(Function &F) {
|
|||
if ((isa<StructType>(AI->getAllocatedType()) ||
|
||||
isa<ArrayType>(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)) {
|
||||
|
|
Loading…
Reference in New Issue