[PATCH] D157037: [VPlan] Proactively create mask for tail-folding up-front (NFCI).

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 15 06:50:50 PDT 2023


ABataev added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:8156
+  if (OrigLoop->getHeader() == BB)
+    return BlockMaskCache[BB];
+
----------------
It may create a new item in BlockMaskCache with nullptr value. Do you need to check that the user actually expects it?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D157037



More information about the llvm-commits mailing list