[PATCH] D121621: [VPlan] Track current vector loop in VPTransformState (NFC).

Ayal Zaks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 27 09:16:49 PDT 2022


Ayal added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/VPlan.cpp:914
+  State->CurrentVectorLoop = L;
   State->CFG.LastBB = L->getExitBlock();
 
----------------
Ayal wrote:
> Is CFG.LastBB now redundant, retrievable from CurrentVectorLoop->getExitBlock()?
> (Or could CurrentVectorLoop be retrieved from LastBB'd predecessor, if unique.)
(State->CurrentVectorLoop itself is also caching of State->LI->getLoopFor(State->CFG.VectorHeaderBB))


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D121621



More information about the llvm-commits mailing list