Fix PR21694. r219517 added a use of SCEV divide in HowFarToZero computation. This...
authorMark Heffernan <meheff@google.com>
Wed, 10 Dec 2014 22:53:52 +0000 (22:53 +0000)
committerMark Heffernan <meheff@google.com>
Wed, 10 Dec 2014 22:53:52 +0000 (22:53 +0000)
commit41d7656d5a7a41b95af7a3c6a1e13f5a4571c2b9
tree24f97d0a539dd0ce60f20a3d884752665c697102
parent2325e38024d095b9780e709cc8ca134aab1941fb
Fix PR21694. r219517 added a use of SCEV divide in HowFarToZero computation.  This divide can produce incorrect results as we are using an unsigned divide for what should be a modular divide.  This change reverts back to a more conservative computation using trailing zeros.

llvm-svn: 223974
llvm/lib/Analysis/ScalarEvolution.cpp