[llvm] [VPlan] Explicitly handle scalar pointer inductions. (PR #83068)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 7 07:30:40 PST 2024
================
@@ -273,8 +274,28 @@ VPInstruction::VPInstruction(unsigned Opcode,
assert(isFPMathOp() && "this op can't take fast-math flags");
}
-Value *VPInstruction::generateInstruction(VPTransformState &State,
- unsigned Part) {
+bool VPInstruction::generatesScalars() const {
+ return
+ Opcode == VPInstruction::PtrAdd;
----------------
ayalz wrote:
```suggestion
return Opcode == VPInstruction::PtrAdd;
```
https://github.com/llvm/llvm-project/pull/83068
More information about the llvm-commits
mailing list