llvm-project
c6248510 - [LoopVectorize] Fix an integer narrowing conversion in `getPredBlockCostDivisor(...)` (#187605)

Commit
28 days ago
[LoopVectorize] Fix an integer narrowing conversion in `getPredBlockCostDivisor(...)` (#187605) `LoopVectorizationCostModel::getPredBlockCostDivisor(...)` may return large `uint64_t` values that get coerced to an `unsigned` by `VPCostContext::getPredBlockCostDivisor(...)`, which can cause division by zero. Fixes #187584
Author
Parents
Loading