[all-commits] [llvm/llvm-project] 66a834: [VPlan] Skip disconnected exit blocks in hasEarlyE...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Mon Aug 4 03:31:22 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 66a8341f6d89d562faad667986af8fa584ad7426
https://github.com/llvm/llvm-project/commit/66a8341f6d89d562faad667986af8fa584ad7426
Author: Florian Hahn <flo at fhahn.com>
Date: 2025-08-04 (Mon, 04 Aug 2025)
Changed paths:
M llvm/lib/Transforms/Vectorize/VPlan.h
M llvm/test/Transforms/LoopVectorize/vect.stats.ll
Log Message:
-----------
[VPlan] Skip disconnected exit blocks in hasEarlyExit. (#151718)
Currently hasEarlyExit returns true, if there are multiple exit blocks.
ExitBlocks contains the wrapped original IR exit blocks. Without
checking the predecessors we incorrectly return true for loops with
multiple countable exits, that have been vectorized by requiring a
scalar epilogue. In that case, the exit blocks will get disconnected.
Fix this by filtering out disconnected exit blocks.
Currently this should only impact the 'early-exit vectorized' statistic.
PR: https://github.com/llvm/llvm-project/pull/151718
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list