Changes

Summary

  1. [LSR] Filter out zero factors. PR50765 (details)
Commit b7d2c173ebbbd48342d498ebc8a1127dbc6d87b1 by mkazantsev
[LSR] Filter out zero factors. PR50765

Zero factor leads to division by zero and failure of corresponding
assert as shown in PR50765. We should filter out such factors.

Differential Revision: https://reviews.llvm.org/D104702
Reviewed By: huihuiz, reames
The file was modifiedllvm/test/Transforms/LoopStrengthReduce/pr50765.ll
The file was modifiedllvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp