llvm-project
[CodeGenPrepare] Convert `ctpop(X) ==/!= 1` into `ctpop(X) u</u> 2/1`
#111284
Merged

[CodeGenPrepare] Convert `ctpop(X) ==/!= 1` into `ctpop(X) u</u> 2/1` #111284

dtcxzyw merged 5 commits into llvm:main from dtcxzyw:perf/is-power2-nonzero
dtcxzyw
dtcxzyw dtcxzyw requested a review from arsenm arsenm 1 year ago
dtcxzyw dtcxzyw requested a review from nikic nikic 1 year ago
dtcxzyw dtcxzyw requested a review from RKSimon RKSimon 1 year ago
dtcxzyw dtcxzyw requested a review from topperc topperc 1 year ago
dtcxzyw dtcxzyw requested a review from goldsteinn goldsteinn 1 year ago
llvmbot llvmbot added backend:AArch64
llvmbot llvmbot added backend:X86
llvmbot
llvmbot
dtcxzyw dtcxzyw requested a review from efriedma-quic efriedma-quic 1 year ago
goldsteinn
goldsteinn commented on 2024-10-06
goldsteinn
goldsteinn approved these changes on 2024-10-06
arsenm
arsenm commented on 2024-10-07
arsenm
arsenm commented on 2024-10-07
arsenm
arsenm approved these changes on 2024-10-10
dtcxzyw [CodeGenPrepare] Add pre-commit tests. NFC.
9449548d
dtcxzyw [CodeGenPrepare] Convert `ctpop(X) ==/!= 1 -> ctpop(X) u</u> 2/1`
bf11b6d3
dtcxzyw [CodeGenPrepare] Use `isKnownNonZero`
2e810b51
dtcxzyw [CodeGenPrepare] Check if it is profitable for the target
7357e3a3
dtcxzyw [CodeGenPrepare] Remove target cost checks
fb33033a
dtcxzyw dtcxzyw force pushed to fb33033a 1 year ago
dtcxzyw dtcxzyw merged e3894f58 into main 1 year ago
dtcxzyw dtcxzyw deleted the perf/is-power2-nonzero branch 1 year ago
llvm-ci

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone