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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307667 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dinar Temirbulatov 2017-07-11 15:54:50 +00:00
parent 0495576a59
commit fa3d66c27c

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");