llvm-project
[SelectionDAG] Use ctlz(x & -x) ^ 31 for CTTZ_ZERO_POISON when ctpop is not available
#220415
Merged

[SelectionDAG] Use ctlz(x & -x) ^ 31 for CTTZ_ZERO_POISON when ctpop is not available #220415

chrisnc
llvmorg-github-actions llvmorg-github-actions added backend:MIPS
llvmorg-github-actions llvmorg-github-actions added backend:RISC-V
llvmorg-github-actions llvmorg-github-actions added backend:PowerPC
llvmorg-github-actions llvmorg-github-actions added llvm:SelectionDAG
llvmorg-github-actions
llvmorg-github-actions
chrisnc
chrisnc commented on 2026-09-01
topperc
topperc commented on 2026-09-01
chrisnc chrisnc force pushed from 6924883a to 8dacc4f6 79 days ago
llvmorg-github-actions llvmorg-github-actions added backend:SystemZ
llvmorg-github-actions llvmorg-github-actions added backend:X86
chrisnc chrisnc changed the title [SelectionDAG] Use 32 - ctlz(x & -x) for CTTZ_ZERO_POISON when ctpop is not available [SelectionDAG] Use 31 ^ ctlz(x & -x) for CTTZ_ZERO_POISON when ctpop is not available 79 days ago
chrisnc
chrisnc commented on 2026-09-02
chrisnc chrisnc requested a review from topperc topperc 79 days ago
topperc
topperc commented on 2026-09-02
chrisnc [SelectionDAG] Use ctlz(x & -x) ^ 31 for CTTZ_ZERO_POISON when ctpop …
5e7ebe7a
chrisnc chrisnc force pushed from 8dacc4f6 to 5e7ebe7a 79 days ago
chrisnc chrisnc requested a review from topperc topperc 79 days ago
topperc
topperc approved these changes on 2026-09-02
chrisnc chrisnc changed the title [SelectionDAG] Use 31 ^ ctlz(x & -x) for CTTZ_ZERO_POISON when ctpop is not available [SelectionDAG] Use ctlz(x & -x) ^ 31 for CTTZ_ZERO_POISON when ctpop is not available 79 days ago
chrisnc
topperc topperc merged df357e78 into main 79 days ago
chrisnc chrisnc deleted the selectiondag-ctlz-zero-poison branch 79 days ago
llvm-ci
chrisnc

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone