We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e7cac7 commit 4a51d29Copy full SHA for 4a51d29
llvm/lib/Transforms/Vectorize/VPlan.h
@@ -3891,10 +3891,10 @@ class VPlan {
3891
/// whether to execute the scalar tail loop or the exit block from the loop
3892
/// latch.
3893
const VPBasicBlock *getMiddleBlock() const {
3894
- return cast<VPBasicBlock>(getScalarPreheader()->getSinglePredecessor());
+ return cast<VPBasicBlock>(getScalarPreheader()->getPredecessors()[0]);
3895
}
3896
VPBasicBlock *getMiddleBlock() {
3897
3898
3899
3900
/// Return the VPBasicBlock for the preheader of the scalar loop.
0 commit comments