mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
SRThreshold is meant to be inclusive.
llvm-svn: 66227
This commit is contained in:
parent
83c13c2ace
commit
918955bbc4
@ -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…
x
Reference in New Issue
Block a user