[all-commits] [llvm/llvm-project] 7917b1: [CodeGen] Always expand division larger than i128
Nikita Popov via All-commits
all-commits at lists.llvm.org
Thu Mar 2 23:11:46 PST 2023
Branch: refs/heads/release/16.x
Home: https://github.com/llvm/llvm-project
Commit: 7917b15d9ef6b5e34936cd02d47c2c6258d8eeb3
https://github.com/llvm/llvm-project/commit/7917b15d9ef6b5e34936cd02d47c2c6258d8eeb3
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-03-02 (Thu, 02 Mar 2023)
Changed paths:
M llvm/lib/CodeGen/TargetLoweringBase.cpp
A llvm/test/CodeGen/Mips/idiv_large.ll
A llvm/test/CodeGen/PowerPC/idiv_large.ll
A llvm/test/CodeGen/RISCV/idiv_large.ll
Log Message:
-----------
[CodeGen] Always expand division larger than i128
Default MaxDivRemBitWidthSupported to 128, so that divisions larger
than 128 bits are always expanded, without requiring additional
configuration from the target.
Note that this may still emit calls to __udivti3 on 32-bit targets,
which likely don't have an implementation of that builtin. However,
I believe this is sufficient to fix
https://github.com/llvm/llvm-project/issues/60531, because Zig must
already be defining those builtins.
Differential Revision: https://reviews.llvm.org/D144871
(cherry picked from commit ddccc5ba4479a36dd4821f0948e118438fbf2e56)
More information about the All-commits
mailing list