[SLP] Address post commit comment from 2e50760
authorPhilip Reames <listmail@philipreames.com>
Fri, 18 Feb 2022 18:57:08 +0000 (10:57 -0800)
committerPhilip Reames <listmail@philipreames.com>
Fri, 18 Feb 2022 18:57:15 +0000 (10:57 -0800)
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

index 024890e..4a73110 100644 (file)
@@ -7930,7 +7930,7 @@ void BoUpSLP::scheduleBlock(BlockScheduling *BS) {
   BS->verify();
 #endif
 
-#ifndef NDEBUG
+#if !defined(NDEBUG) || defined(EXPENSIVE_CHECKS)
   // Check that all schedulable entities got scheduled
   for (auto *I = BS->ScheduleStart; I != BS->ScheduleEnd; I = I->getNextNode()) {
     BS->doForAllOpcodes(I, [&](ScheduleData *SD) {