[all-commits] [llvm/llvm-project] cd6434: [ExpandLargeDivRem] Scalarize vector types. (#86959)
Bevin Hansson via All-commits
all-commits at lists.llvm.org
Tue Apr 2 07:37:58 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cd6434f9ec9af8d7508dc53806440297a24292cf
https://github.com/llvm/llvm-project/commit/cd6434f9ec9af8d7508dc53806440297a24292cf
Author: Bevin Hansson <59652494+bevin-hansson at users.noreply.github.com>
Date: 2024-04-02 (Tue, 02 Apr 2024)
Changed paths:
M llvm/lib/CodeGen/ExpandLargeDivRem.cpp
M llvm/test/CodeGen/AMDGPU/div_v2i128.ll
A llvm/test/Transforms/ExpandLargeDivRem/X86/vector.ll
Log Message:
-----------
[ExpandLargeDivRem] Scalarize vector types. (#86959)
expand-large-divrem cannot handle vector types.
If overly large vector element types survive into
isel, they will likely be scalarized there, but since
isel cannot handle scalar integer types of that size,
it will assert.
Handle vector types in expand-large-divrem by
scalarizing them and then expanding the scalar type
operation. For large vectors, this results in a
*massive* code expansion, but it's better than
asserting.
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