[llvm] [LV] Don't consider VPValues without underlying value as generating vectors (PR #150992)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 29 03:13:54 PDT 2025


================
@@ -4172,7 +4172,7 @@ static bool willGenerateVectors(VPlan &Plan, ElementCount VF,
   // Set of already visited types.
   DenseSet<Type *> Visited;
   for (VPBasicBlock *VPBB : VPBlockUtils::blocksOnly<VPBasicBlock>(
-           vp_depth_first_shallow(Plan.getVectorLoopRegion()->getEntry()))) {
+           vp_depth_first_deep(Plan.getVectorPreheader()))) {
----------------
fhahn wrote:

Hm, intuitively this doesn't seem right to check anything outside the vector region

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


More information about the llvm-commits mailing list