llvm-project
66a8341f - [VPlan] Skip disconnected exit blocks in hasEarlyExit. (#151718)

Commit
129 days ago
[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
Author
Parents
Loading