[llvm] [VPlan] Add Type* and getType() to VPSymbolicValue (NFC) (PR #195183)
via llvm-commits
llvm-commits at lists.llvm.org
Sun May 10 12:16:56 PDT 2026
================
@@ -1257,7 +1258,8 @@ VPlan *VPlan::duplicate() {
NewScalarHeader = createVPIRBasicBlock(ScalarHeaderIRBB);
}
// Create VPlan, clone live-ins and remap operands in the cloned blocks.
- auto *NewPlan = new VPlan(cast<VPBasicBlock>(NewEntry), NewScalarHeader);
+ auto *NewPlan =
+ new VPlan(cast<VPBasicBlock>(NewEntry), NewScalarHeader, VF.getType());
----------------
ayalz wrote:
Better have `VPlan::getIndexType()` which could be implemented by looking up its `VF.getType()`? Should actually be the type of index of a loop region.
https://github.com/llvm/llvm-project/pull/195183
More information about the llvm-commits
mailing list