forked from OSchip/llvm-project
[SLPVectorizer] Remove duplicated functionality code in initScheduleData function, NFCI.
llvm-svn: 313341
This commit is contained in:
parent
d78db15629
commit
bb891b864c
|
@ -3595,12 +3595,6 @@ void BoUpSLP::BlockScheduling::initScheduleData(Instruction *FromI,
|
|||
for (Instruction *I = FromI; I != ToI; I = I->getNextNode()) {
|
||||
ScheduleData *SD = ScheduleDataMap[I];
|
||||
if (!SD) {
|
||||
// Allocate a new ScheduleData for the instruction.
|
||||
if (ChunkPos >= ChunkSize) {
|
||||
ScheduleDataChunks.push_back(
|
||||
llvm::make_unique<ScheduleData[]>(ChunkSize));
|
||||
ChunkPos = 0;
|
||||
}
|
||||
SD = allocateScheduleDataChunks();
|
||||
ScheduleDataMap[I] = SD;
|
||||
SD->Inst = I;
|
||||
|
|
Loading…
Reference in New Issue