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 | 9c61acc45064bac1fad666021202deef54dddcb5 (patch) | |
| tree | 285066640fc7a2fd3d5e19cafb0a85bb533d99f2 /llvm/lib/Transforms/Scalar/Reassociate.cpp | |
| parent | 90db5453501c20c4a949dcd99ce705b2995dee6d (diff) | |
| download | bcm5719-llvm-9c61acc45064bac1fad666021202deef54dddcb5.tar.gz bcm5719-llvm-9c61acc45064bac1fad666021202deef54dddcb5.zip | |
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.
llvm-svn: 34813
Diffstat (limited to 'llvm/lib/Transforms/Scalar/Reassociate.cpp')
0 files changed, 0 insertions, 0 deletions

