diff --git a/llvm/lib/Transforms/Vectorize/VPlan.cpp b/llvm/lib/Transforms/Vectorize/VPlan.cpp index 4332332ef5cc3..773a5a4a829c7 100644 --- a/llvm/lib/Transforms/Vectorize/VPlan.cpp +++ b/llvm/lib/Transforms/Vectorize/VPlan.cpp @@ -1015,6 +1015,8 @@ void VPlan::execute(VPTransformState *State) { for (VPBlockBase *Block : RPOT) Block->execute(State); + State->CFG.DTU.flush(); + VPBasicBlock *Header = vputils::getFirstLoopHeader(*this, State->VPDT); if (!Header) return;