summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Module.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-04-06 21:06:03 +0000
committerCraig Topper <craig.topper@gmail.com>2017-04-06 21:06:03 +0000
commitb4da6840d85a9d0b62da4915ff0f9c075d6d8c7c (patch)
tree8bde2ae6746b13d2f09e3eb2049760a08847a0f0 /lldb/source/Core/Module.cpp
parent9b9800951da1c342223bd174dc1fcd441b6061b7 (diff)
downloadbcm5719-llvm-b4da6840d85a9d0b62da4915ff0f9c075d6d8c7c.tar.gz
bcm5719-llvm-b4da6840d85a9d0b62da4915ff0f9c075d6d8c7c.zip
[InstCombine] When checking to see if we can turn subtracts of 2^n - 1 into xor, we only need to call computeKnownBits on the RHS not the whole subtract. While there use isMask instead of isPowerOf2(C+1)
Calling computeKnownBits on the RHS should allows us to recurse one step further. isMask is equivalent to the isPowerOf2(C+1) except in the case where C is all ones. But that was already handled earlier by creating a not which is an Xor with all ones. So this should be fine. llvm-svn: 299710
Diffstat (limited to 'lldb/source/Core/Module.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud