Fix GetMinTrailingZeros for SCEVSignExtend and SCEVZeroExtendExpr to
authorDan Gohman <gohman@apple.com>
Tue, 12 May 2009 01:23:18 +0000 (01:23 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 12 May 2009 01:23:18 +0000 (01:23 +0000)
commit42a5875e107a5dea72745574b0215d9bcdf6deb4
tree5138b473ff24add734b06ae45d1e17e570b28407
parent6ed34918ebc2b7bcfcc5e5ee42070303b73811fe
Fix GetMinTrailingZeros for SCEVSignExtend and SCEVZeroExtendExpr to
return the correct value when the cast operand is all zeros. This ought
to be pretty rare, because it would mean that the regular SCEV folding
routines missed a case, though there are cases they might legitimately
miss. Also, it's unlikely anything currently using GetMinTrailingZeros
cares about this case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71532 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp