Teach getExactSDiv to evaluate x/1 to x up front, as it's a common
authorDan Gohman <gohman@apple.com>
Thu, 24 Jun 2010 16:51:25 +0000 (16:51 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 24 Jun 2010 16:51:25 +0000 (16:51 +0000)
commitd42819a07b052e68c6967c10c35a81eb808c5018
tree9149c4f44f249f1ba54448e7ae3ed2251c046418
parent789fef987f9c3dd14743731e3a6733f2f90c9778
Teach getExactSDiv to evaluate x/1 to x up front, as it's a common
enough special case, and it theoretically allows more folding because
it works even when x is unanalyzable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106763 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp