File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2121,11 +2121,10 @@ static void licm(VPlan &Plan) {
21212121
21222122 // Hoist any loop invariant recipes from the vector loop region to the
21232123 // preheader. Preform a shallow traversal of the vector loop region, to
2124- // exclude recipes in replicate regions.
2124+ // exclude recipes in replicate regions. Since the top-level blocks in the
2125+ // vector loop region are guaranteed to execute if the vector pre-header is,
2126+ // we don't need to check speculation safety.
21252127 VPRegionBlock *LoopRegion = Plan.getVectorLoopRegion ();
2126-
2127- // Since the vector loop region is guaranteed to execute, if the vector
2128- // pre-header is, we don't need to check speculation safety.
21292128 assert (Preheader->getSingleSuccessor () == LoopRegion &&
21302129 " Expected vector prehader's successor to be the vector loop region" );
21312130 for (VPBasicBlock *VPBB : VPBlockUtils::blocksOnly<VPBasicBlock>(
You can’t perform that action at this time.
0 commit comments