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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 7 13:51:04 PST 2024


================
@@ -509,7 +530,19 @@ void VPInstruction::execute(VPTransformState &State) {
   if (hasFastMathFlags())
     State.Builder.setFastMathFlags(getFastMathFlags());
   for (unsigned Part = 0; Part < State.UF; ++Part) {
-    Value *GeneratedValue = generateInstruction(State, Part);
+    if (generatesScalars()) {
----------------
fhahn wrote:

Separated while still calling generatePerLane, thanks! 

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


More information about the llvm-commits mailing list