forked from OSchip/llvm-project
[Vectorize] Fix an 'unused variable' warning
This patch fixes: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:8148:18: error: unused variable 'SDTE' [-Werror,-Wunused-variable]
This commit is contained in:
parent
e1bae23f6f
commit
b3d8c0d069
|
@ -8146,6 +8146,7 @@ void BoUpSLP::scheduleBlock(BlockScheduling *BS) {
|
|||
I = I->getNextNode()) {
|
||||
BS->doForAllOpcodes(I, [this, &Idx, &NumToSchedule, BS](ScheduleData *SD) {
|
||||
TreeEntry *SDTE = getTreeEntry(SD->Inst);
|
||||
(void)SDTE;
|
||||
assert((isVectorLikeInstWithConstOps(SD->Inst) ||
|
||||
SD->isPartOfBundle() ==
|
||||
(SDTE && !doesNotNeedToSchedule(SDTE->Scalars))) &&
|
||||
|
|
Loading…
Reference in New Issue