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

via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 22 01:22:52 PDT 2024


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

Ah, right, of course. Perhaps worth a comment.

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


More information about the llvm-commits mailing list