[llvm] [VPlan] Explicitly handle scalar pointer inductions. (PR #83068)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 11 06:57:35 PDT 2024
================
@@ -44,6 +44,8 @@ Type *VPTypeAnalysis::inferScalarTypeForRecipe(const VPInstruction *R) {
CachedTypes[OtherV] = ResTy;
return ResTy;
}
+ case VPInstruction::PtrAdd:
----------------
fhahn wrote:
PtrAdd's operand have different types, with the first one being a pointer and the second one being an integer offset.
https://github.com/llvm/llvm-project/pull/83068
More information about the llvm-commits
mailing list