[all-commits] [llvm/llvm-project] 76bc07: DAG: Fix assert when legalizing v3f16 ldexp (#97098)

Matt Arsenault via All-commits all-commits at lists.llvm.org
Sat Jun 29 23:29:41 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76bc0714185c50c6234a74ee3d85509f66fa772e
      https://github.com/llvm/llvm-project/commit/76bc0714185c50c6234a74ee3d85509f66fa772e
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-06-30 (Sun, 30 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 (#97098)

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