Skip to content

Commit ab70f47

Browse files
committed
Add assert that loop region is dissolved
1 parent f2a577e commit ab70f47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlan.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ Value *VPTransformState::get(const VPValue *Def, bool NeedsScalar) {
291291

292292
auto GetBroadcastInstrs = [this, Def](Value *V) {
293293
VPBasicBlock *PreheaderVPBB = nullptr;
294+
assert(!Plan->getVectorLoopRegion() && "Regions not yet dissolved?");
294295
if (auto *Header = vputils::getFirstLoopHeader(*Plan, VPDT))
295296
PreheaderVPBB = cast<VPBasicBlock>(Header->getPredecessors()[0]);
296297

0 commit comments

Comments
 (0)