[all-commits] [llvm/llvm-project] 685003: AMDGPU/GlobalISel: Legalize s64->s16 G_SITOFP/G_UI...

petar-avramovic via All-commits all-commits at lists.llvm.org
Thu Jul 16 07:32:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6850033ca68b42a0cb5229f71d90c58b86c940ce
      https://github.com/llvm/llvm-project/commit/6850033ca68b42a0cb5229f71d90c58b86c940ce
  Author: Petar Avramovic <Petar.Avramovic at amd.com>
  Date:   2020-07-16 (Thu, 16 Jul 2020)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
    M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-sitofp.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-uitofp.mir

  Log Message:
  -----------
  AMDGPU/GlobalISel: Legalize s64->s16 G_SITOFP/G_UITOFP

Add widenScalar for TypeIdx == 0 for G_SITOFP/G_UITOFP.
Legailize, using widenScalar, as s64->s32 G_SITOFP/G_UITOFP
followed by s32->s16 G_FPTRUNC.

Differential Revision: https://reviews.llvm.org/D83880




More information about the All-commits mailing list