mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
SRThreshold is meant to be inclusive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66227 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -260,7 +260,7 @@ bool SROA::performScalarRepl(Function &F) {
|
|||||||
if ((isa<StructType>(AI->getAllocatedType()) ||
|
if ((isa<StructType>(AI->getAllocatedType()) ||
|
||||||
isa<ArrayType>(AI->getAllocatedType())) &&
|
isa<ArrayType>(AI->getAllocatedType())) &&
|
||||||
// Do not promote any struct into more than "32" separate vars.
|
// 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
|
// Check that all of the users of the allocation are capable of being
|
||||||
// transformed.
|
// transformed.
|
||||||
switch (isSafeAllocaToScalarRepl(AI)) {
|
switch (isSafeAllocaToScalarRepl(AI)) {
|
||||||
|
Reference in New Issue
Block a user