[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


================
@@ -273,8 +274,27 @@ VPInstruction::VPInstruction(unsigned Opcode,
   assert(isFPMathOp() && "this op can't take fast-math flags");
 }
 
-Value *VPInstruction::generateInstruction(VPTransformState &State,
-                                          unsigned Part) {
+bool VPInstruction::doesGenerateScalars() const {
+  return Opcode == VPInstruction::PtrAdd;
----------------
fhahn wrote:

Updated to use `doesGeneratePerAllLanes`.

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


More information about the llvm-commits mailing list