[llvm] [VPlan] Explicitly handle scalar pointer inductions. (PR #83068)

via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 10 16:55:11 PDT 2024


================
@@ -44,6 +44,8 @@ Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPInstruction *R) {
     CachedTypes[OtherV] = ResTy;
     return ResTy;
   }
+  case VPInstruction::PtrAdd:
----------------
ayalz wrote:

nit: worth asserting and caching the type of the other operand, i.e., join the above cases of ICmp and FOR Splice?

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


More information about the llvm-commits mailing list