diff options
| author | Craig Topper <craig.topper@sifive.com> | 2021-03-24 10:53:23 -0700 |
|---|---|---|
| committer | Craig Topper <craig.topper@sifive.com> | 2021-03-24 10:58:42 -0700 |
| commit | f24f09d256ae8a67569f3fb2f766dad3712d9c19 (patch) | |
| tree | d45e4767b34ce6a241e47c3d549867a10edef06e /lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp | |
| parent | c5d53efeff5ca3943af6684e999c8802d9f48702 (diff) | |
[RISCV] Add TTI support for cpop with Zbb
This will tell loop idiom recognize that it can make popcount loops countable
using the ctpop intrinsic. I didn't bother checking for illegal types.
Type legalization knows how to split a ctpop into multiple ctops added together.
Assuming we only receive reasonable integer bit widths, a few cpop instructions
added together is probably better than the loop.
Reviewed By: frasercrmck
Differential Revision: https://reviews.llvm.org/D99203
Diffstat (limited to 'lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp')
0 files changed, 0 insertions, 0 deletions
