diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-03-01 21:50:41 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-03-01 21:50:41 +0000 |
commit | 37eeaa729bc70258166a675ee00bbe95e608d519 (patch) | |
tree | 8ac8010fd61c596b62e2f9adf22ddde53b51cb9f /lib/Analysis/ScalarEvolutionExpander.cpp | |
parent | c100b96b1536ef92cadac28bd268da105a67d4a0 (diff) |
Add an isUnitValue method for comparison against 1. This just follows a
common pattern with isNullValue, isAllOnesValue, etc. It also helps to
prevent things like getZExtValue() == 1, which could assert for large
bitwidths.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34813 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ScalarEvolutionExpander.cpp')
0 files changed, 0 insertions, 0 deletions