Skip to content

Commit d55be79

Browse files
committed
[RISCV] Expand scalable vector CTTZ/CTLZ/CTPOP.
Differential Revision: https://reviews.llvm.org/D112233
1 parent 3781a46 commit d55be79

File tree

4 files changed

+6718
-0
lines changed

4 files changed

+6718
-0
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,10 @@ RISCVTargetLowering::RISCVTargetLowering(const TargetMachine &TM,
533533
setOperationAction(ISD::ROTL, VT, Expand);
534534
setOperationAction(ISD::ROTR, VT, Expand);
535535

536+
setOperationAction(ISD::CTTZ, VT, Expand);
537+
setOperationAction(ISD::CTLZ, VT, Expand);
538+
setOperationAction(ISD::CTPOP, VT, Expand);
539+
536540
// Custom-lower extensions and truncations from/to mask types.
537541
setOperationAction(ISD::ANY_EXTEND, VT, Custom);
538542
setOperationAction(ISD::SIGN_EXTEND, VT, Custom);

0 commit comments

Comments
 (0)