[libc-commits] [libc] [clang] [flang] [llvm] [compiler-rt] [libcxxabi] [clang-tools-extra] [libcxx] [lldb] [lld] [libclc] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

via libc-commits libc-commits at lists.llvm.org
Wed Jan 24 15:08:54 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) {
----------------
ayalz wrote:

So now that VPDerivedIVRecipe simply mirrors the type of its first start-value operand, should it join VPCanonicalIVPHIRecipe et al.'s or VPPredInstPHIRecipe et al.'s cases above and remove its getScalarType() method? Possibly as a follow-up.

Should VPWidenIntOrFpInductionRecipe's trunc also utilize VPScalarCastRecipe, and retire its getScalarType(), possibly as a follow-up?

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


More information about the libc-commits mailing list