[SLPVectorizer] Revert change in cancelScheduling with referencing to FirstInBundle, NFCI.

llvm-svn: 307667
This commit is contained in:
Dinar Temirbulatov
2017-07-11 15:54:50 +00:00
parent 393ce69422
commit 09b6779709

View File

@@ -3188,7 +3188,7 @@ void BoUpSLP::BlockScheduling::cancelScheduling(ArrayRef<Value *> VL,
if (isa<PHINode>(OpValue))
return;
ScheduleData *Bundle = getScheduleData(OpValue)->FirstInBundle;
ScheduleData *Bundle = getScheduleData(OpValue);
DEBUG(dbgs() << "SLP: cancel scheduling of " << *Bundle << "\n");
assert(!Bundle->IsScheduled &&
"Can't cancel bundle which is already scheduled");