summaryrefslogtreecommitdiff
path: root/unittests/IR/InstructionsTest.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2013-07-30 21:01:36 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2013-07-30 21:01:36 +0000
commit36850ad779cb77930ab9e03bc1bde4ad47dc9dce (patch)
tree55320cf98b59089420c34256837aa112a489eb72 /unittests/IR/InstructionsTest.cpp
parentf34dc428fa577d6d5d71ab3a1f9765b4e5da5a4f (diff)
downloadllvm-36850ad779cb77930ab9e03bc1bde4ad47dc9dce.tar.gz
llvm-36850ad779cb77930ab9e03bc1bde4ad47dc9dce.tar.bz2
llvm-36850ad779cb77930ab9e03bc1bde4ad47dc9dce.tar.xz
isKnownToBeAPowerOfTwo: Strengthen isKnownToBeAPowerOfTwo's analysis on add instructions
Call into ComputeMaskedBits to figure out which bits are set on both add operands and determine if the value is a power-of-two-or-zero or not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187445 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/IR/InstructionsTest.cpp')
0 files changed, 0 insertions, 0 deletions