summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/Reassociate.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-01 21:50:41 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-01 21:50:41 +0000
commit9c61acc45064bac1fad666021202deef54dddcb5 (patch)
tree285066640fc7a2fd3d5e19cafb0a85bb533d99f2 /llvm/lib/Transforms/Scalar/Reassociate.cpp
parent90db5453501c20c4a949dcd99ce705b2995dee6d (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud