[llvm] [VPlan] Add VPValue::getWideType(VF), use to get vector ty (NFC) (PR #228250)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 2 04:44:45 PDT 2026


================
@@ -159,6 +159,10 @@ Type *VPValue::getScalarType() const {
   llvm_unreachable("Unhandled VPValue subclass");
 }
 
+Type *VPValue::getWideType(ElementCount VF) const {
----------------
artagnon wrote:

```suggestion
Type *VPValue::getVectorType(ElementCount VF) const {
```

Perhaps clearer, and symmetric with getScalarType?

https://github.com/llvm/llvm-project/pull/228250


More information about the llvm-commits mailing list