[all-commits] [llvm/llvm-project] 52bfee: DAG: Fix assert when legalizing v3f16 ldexp

Matt Arsenault via All-commits all-commits at lists.llvm.org
Fri Jun 28 14:02:33 PDT 2024


  Branch: refs/heads/users/arsenm/dag-fix-legalization-ldexp-v3f16
  Home:   https://github.com/llvm/llvm-project
  Commit: 52bfee379422ae006280eedf6644a860b5cf1787
      https://github.com/llvm/llvm-project/commit/52bfee379422ae006280eedf6644a860b5cf1787
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-06-28 (Fri, 28 Jun 2024)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
    M llvm/test/CodeGen/AMDGPU/llvm.ldexp.ll

  Log Message:
  -----------
  DAG: Fix assert when legalizing v3f16 ldexp

For the v3f16.v3i32 case, the v3f16 would request widening
to v4f16, but the v3i32 does not require widening to be a legal
type, so GetWidenedVector would fail. We need to widen the exponent
vector to the same element count as the result.

Fixes: SWDEV-470951



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