[clang] [clang-tools-extra] [llvm] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)
Florian Hahn via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 22 04:51:04 PST 2024
================
@@ -230,7 +230,11 @@ Type *VPTypeAnalysis::inferScalarType(const VPValue *V) {
return V->getUnderlyingValue()->getType();
})
.Case<VPWidenCastRecipe>(
- [](const VPWidenCastRecipe *R) { return R->getResultType(); });
+ [](const VPWidenCastRecipe *R) { return R->getResultType(); })
+ .Case<VPExpandSCEVRecipe>([](const VPExpandSCEVRecipe *R) {
----------------
fhahn wrote:
It is needed to infer the type of the step in the new code in VPlanTransforms.cpp (`if (TypeInfo.inferScalarType(BaseIV) != TypeInfo.inferScalarType(Step)) {)`).
https://github.com/llvm/llvm-project/pull/78113
More information about the cfe-commits
mailing list