[all-commits] [llvm/llvm-project] becd41: [CGP] Despeculate ctlz/cttz with "illegal" integer...
Sergei Barannikov via All-commits
all-commits at lists.llvm.org
Tue Apr 29 12:34:01 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: becd418626e1ebedde6d095f7bb020e554251b15
https://github.com/llvm/llvm-project/commit/becd418626e1ebedde6d095f7bb020e554251b15
Author: Sergei Barannikov <barannikov88 at gmail.com>
Date: 2025-04-29 (Tue, 29 Apr 2025)
Changed paths:
M llvm/lib/CodeGen/CodeGenPrepare.cpp
M llvm/test/CodeGen/ARM/cttz.ll
M llvm/test/CodeGen/RISCV/GlobalISel/rv32zbb.ll
M llvm/test/CodeGen/RISCV/ctlz-cttz-ctpop.ll
M llvm/test/CodeGen/RISCV/rv32xtheadbb.ll
M llvm/test/CodeGen/RISCV/rv32zbb.ll
M llvm/test/CodeGen/SPARC/ctlz.ll
M llvm/test/CodeGen/SPARC/cttz.ll
M llvm/test/CodeGen/X86/ctlo.ll
M llvm/test/CodeGen/X86/ctlz.ll
M llvm/test/CodeGen/X86/cttz.ll
R llvm/test/CodeGen/X86/lzcnt-cmp.ll
Log Message:
-----------
[CGP] Despeculate ctlz/cttz with "illegal" integer types (#137197)
The code below the removed check looks generic enough to support
arbitrary integer widths. This change helps 32-bit targets avoid
expensive expansion/libcalls in the case of zero input.
Pull Request: https://github.com/llvm/llvm-project/pull/137197
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list