Implement Constant::isAllOnesValue(). Fix ConstantFolding to use the new api.
authorNadav Rotem <nadav.rotem@intel.com>
Wed, 24 Aug 2011 20:18:38 +0000 (20:18 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Wed, 24 Aug 2011 20:18:38 +0000 (20:18 +0000)
commit4c7c0f23533565c7e2ddf71e01bf50f2aede5f1b
tree7712e1fd7075695dceadf424ad4a982f5e194b1e
parentdf9ce6bbc5b66c3c4d30c2f32b6f17c690cfa004
Implement Constant::isAllOnesValue(). Fix ConstantFolding to use the new api.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138469 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Constant.h
include/llvm/Constants.h
lib/Analysis/ConstantFolding.cpp
lib/VMCore/Constants.cpp
test/Transforms/InstCombine/bitcast.ll