diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-03-23 10:50:51 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-03-23 11:04:33 +0000 |
| commit | 72d1419bfba2a1c4d842ab57849a22d9260a1bb6 (patch) | |
| tree | 26d3b3933853ab5203b8c24aca9ac24a73565824 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h | |
| parent | 6081ccf4a3b6289717c8ae558ac210c36ddcbfbe (diff) | |
| download | llvm-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
