[llvm] [VPlan] Verify scalar types in VPlanVerifier. NFCI (PR #122679)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 14 06:39:09 PST 2025
================
@@ -195,6 +197,9 @@ bool VPlanVerifier::verifyVPBasicBlock(const VPBasicBlock *VPBB) {
return false;
}
for (const VPValue *V : R.definedValues()) {
+ // Verify that recipes' operands have matching types.
+ TypeInfo.inferScalarType(V);
----------------
lukel97 wrote:
That makes sense, I've added in some error reporting code to have it align with the rest of VPlanVerifier. Lets hope it never gets called :)
https://github.com/llvm/llvm-project/pull/122679
More information about the llvm-commits
mailing list