[PATCH] D92129: [VPlan] Keep start value in VPWidenIntOrFpInductionRecipe (NFC).

Ayal Zaks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 5 04:43:07 PST 2021


Ayal added a comment.

Good step towards representing more Values, and in particular recording InductionDescriptor information, in VPlan!



================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:8695
   assert(!State.Instance && "Int or FP induction being replicated.");
-  State.ILV->widenIntOrFpInduction(IV, Trunc);
+  State.ILV->widenIntOrFpInduction(IV, getStartValue()->getOutOfScopeIRValue(),
+                                   Trunc);
----------------
getStateValue() can be asserted to be a live-in, i.e., have a null Def, and then we can obtain its underlying Value (the latter possibly asserted to be non null)?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92129/new/

https://reviews.llvm.org/D92129



More information about the llvm-commits mailing list