[llvm] [VPlan] Add initial anlysis to infer scalar type of VPValues. (PR #69013)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 26 17:12:47 PDT 2023
================
@@ -1458,7 +1460,7 @@ class VPWidenIntOrFpInductionRecipe : public VPHeaderPHIRecipe {
bool isCanonical() const;
/// Returns the scalar type of the induction.
- const Type *getScalarType() const {
+ Type *getScalarType() const {
return Trunc ? Trunc->getType() : IV->getType();
----------------
ayalz wrote:
Can wait for separate subsequent patch: type of all header phi's should arguably be derived from their start value. If it gets truncated, let the start value be truncated in VPlan. Similar for DerivedIV.
https://github.com/llvm/llvm-project/pull/69013
More information about the llvm-commits
mailing list