[all-commits] [llvm/llvm-project] 8abd70: [TargetLowering] Teach BuildUDIV to take advantage...
Craig Topper via All-commits
all-commits at lists.llvm.org
Thu Dec 29 13:59:21 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8abd70081f761738e82b37b2891b60ad034f3880
https://github.com/llvm/llvm-project/commit/8abd70081f761738e82b37b2891b60ad034f3880
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-12-29 (Thu, 29 Dec 2022)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
M llvm/test/CodeGen/AArch64/funnel-shift.ll
M llvm/test/CodeGen/AArch64/urem-vector-lkk.ll
M llvm/test/CodeGen/AMDGPU/fshr.ll
M llvm/test/CodeGen/ARM/select-imm.ll
M llvm/test/CodeGen/PowerPC/funnel-shift.ll
M llvm/test/CodeGen/PowerPC/urem-vector-lkk.ll
M llvm/test/CodeGen/RISCV/urem-vector-lkk.ll
M llvm/test/CodeGen/X86/divide-by-constant.ll
M llvm/test/CodeGen/X86/funnel-shift.ll
M llvm/test/CodeGen/X86/pr38217.ll
M llvm/unittests/Support/DivisionByConstantTest.cpp
Log Message:
-----------
[TargetLowering] Teach BuildUDIV to take advantage of leading zeros in the dividend.
If the dividend has leading zeros, we can use them to reduce the
size of the multiplier and avoid the fixup cases.
This patch is for scalars only, but we might be able to do this
for vectors in a follow up.
Differential Revision: https://reviews.llvm.org/D140750
More information about the All-commits
mailing list