diff options
author | David Majnemer <david.majnemer@gmail.com> | 2013-07-09 18:11:10 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2013-07-09 18:11:10 +0000 |
commit | a92b3c914ebb356aec22c978eae9fa9543fa62e6 (patch) | |
tree | af6fcc230e71b72de881bf2ec0832280ca442715 /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | 861bef7dd05cb15ce1c0237e55798ea94bfb9b97 (diff) | |
download | llvm-a92b3c914ebb356aec22c978eae9fa9543fa62e6.zip llvm-a92b3c914ebb356aec22c978eae9fa9543fa62e6.tar.gz llvm-a92b3c914ebb356aec22c978eae9fa9543fa62e6.tar.bz2 |
ValueTracking: Fix bugs in isKnownToBeAPowerOfTwo
(add nsw x, (and x, y)) isn't a power of two if x is zero, it's zero
(add nsw x, (xor x, y)) isn't a power of two if y has bits set that aren't set in x
llvm-svn: 185954
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions