aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2020-03-23 10:50:51 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2020-03-23 11:04:33 +0000
commit72d1419bfba2a1c4d842ab57849a22d9260a1bb6 (patch)
tree26d3b3933853ab5203b8c24aca9ac24a73565824 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h
parent6081ccf4a3b6289717c8ae558ac210c36ddcbfbe (diff)
downloadllvm-72d1419bfba2a1c4d842ab57849a22d9260a1bb6.zip
llvm-72d1419bfba2a1c4d842ab57849a22d9260a1bb6.tar.gz
llvm-72d1419bfba2a1c4d842ab57849a22d9260a1bb6.tar.bz2
[InstCombine] Add CTPOP -> CTTZ simplifications (PR43513)
As detailed on PR43513, we can simplify: ctpop(x | -x) -> bitwidth - cttz(x, false) Alive2: http://volta.cs.utah.edu:8080/z/caw49X ctpop(~x & (x - 1)) -> cttz(x, false) Alive2: http://volta.cs.utah.edu:8080/z/5zfVrx I've tweaked the initial test cases I added at rG2d712fb75584 to increase commutativity testing. Differential Revision: https://reviews.llvm.org/D76568
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h')
0 files changed, 0 insertions, 0 deletions