LV requires the unroll factor (UF) to be >= 1. This patch adds an explicit assertion for this and fixes a case in the cost model where the UF was set to zero. This was exposed by an out-of-tree TTI implementation that reported zero scores for candidate vectorization factors.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
Is the problem TTI.getMaxInterleaveFactor() returning 0? If that's the case, I think it would be better to make sure TTI.getMaxInterleaveFactor() returns at least 1.
Comment Actions
Marking as changes requested to clear up review queue, as this has a pending comment.