File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -2082,9 +2082,6 @@ class GeneratedRTChecks {
2082
2082
2083
2083
auto *Pred = LoopVectorPreHeader->getSinglePredecessor ();
2084
2084
BranchInst::Create (LoopVectorPreHeader, SCEVCheckBlock);
2085
- // Create new preheader for vector loop.
2086
- if (OuterLoop)
2087
- OuterLoop->addBasicBlockToLoop (SCEVCheckBlock, *LI);
2088
2085
2089
2086
SCEVCheckBlock->getTerminator ()->eraseFromParent ();
2090
2087
SCEVCheckBlock->moveBefore (LoopVectorPreHeader);
@@ -2122,9 +2119,6 @@ class GeneratedRTChecks {
2122
2119
DT->changeImmediateDominator (LoopVectorPreHeader, MemCheckBlock);
2123
2120
MemCheckBlock->moveBefore (LoopVectorPreHeader);
2124
2121
2125
- if (OuterLoop)
2126
- OuterLoop->addBasicBlockToLoop (MemCheckBlock, *LI);
2127
-
2128
2122
BranchInst &BI =
2129
2123
*BranchInst::Create (Bypass, LoopVectorPreHeader, MemRuntimeCheckCond);
2130
2124
if (AddBranchWeights) {
You can’t perform that action at this time.
0 commit comments