[SCEVExpander] Hoist unsigned divisons when safe
authorSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 10 Nov 2016 07:56:12 +0000 (07:56 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Thu, 10 Nov 2016 07:56:12 +0000 (07:56 +0000)
commit3d75b62ffeb694c70f2745be6da658235076146a
tree601955ee3cd469fcd9edbc28672a23ab173d9b4c
parente30a2814490d1e0f1d338a5eebd871e3defd37e4
[SCEVExpander] Hoist unsigned divisons when safe

That is, when the divisor is a constant non-zero.

llvm-svn: 286438
llvm/lib/Analysis/ScalarEvolutionExpander.cpp
llvm/unittests/Analysis/ScalarEvolutionTest.cpp