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.
2 parents c4a71df + eeca894 commit 696d061Copy full SHA for 696d061
llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp
@@ -298,11 +298,16 @@ bool VPlanVerifier::verifyVPBasicBlock(const VPBasicBlock *VPBB) {
298
return false;
299
}
300
301
- if (const auto *EVL = dyn_cast<VPInstruction>(&R)) {
302
- if (EVL->getOpcode() == VPInstruction::ExplicitVectorLength &&
303
- !verifyEVLRecipe(*EVL)) {
304
- errs() << "EVL VPValue is not used correctly\n";
305
- return false;
+ if (const auto *VPI = dyn_cast<VPInstruction>(&R)) {
+ switch (VPI->getOpcode()) {
+ case VPInstruction::ExplicitVectorLength:
+ if (!verifyEVLRecipe(*VPI)) {
+ errs() << "EVL VPValue is not used correctly\n";
306
+ return false;
307
+ }
308
+ break;
309
+ default:
310
311
312
313
0 commit comments