[llvm] [VPlan] Replace VPTypeAnalysis with VPValue::getScalarType. (NFC) (PR #200256)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Sun May 31 22:29:27 PDT 2026
================
@@ -334,10 +331,8 @@ bool VPlanVerifier::verifyVPBasicBlock(const VPBasicBlock *VPBB) {
if (!verifyRecipeTypes(R))
return false;
for (const VPValue *V : R.definedValues()) {
- // Verify that we can infer a scalar type for each defined value. With
- // assertions enabled, inferScalarType will perform some consistency
- // checks during type inference.
- if (!TypeInfo.inferScalarType(V)) {
+ // Verify that each defined value has a scalar type.
+ if (!V->getScalarType()) {
errs() << "Failed to infer scalar type!\n";
----------------
lukel97 wrote:
Remove reference to infer?
```suggestion
errs() << "Value without a scalar type\n";
```
https://github.com/llvm/llvm-project/pull/200256
More information about the llvm-commits
mailing list