[all-commits] [llvm/llvm-project] bd3d95: AMDGPU/GlobalISel: Fix lower for f64->f16 G_FPTRUNC

petar-avramovic via All-commits all-commits at lists.llvm.org
Thu Jun 11 09:20:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bd3d951b8bb9861c3171a322a3407151444923b0
      https://github.com/llvm/llvm-project/commit/bd3d951b8bb9861c3171a322a3407151444923b0
  Author: Petar Avramovic <Petar.Avramovic at amd.com>
  Date:   2020-06-11 (Thu, 11 Jun 2020)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-fptrunc.mir

  Log Message:
  -----------
  AMDGPU/GlobalISel: Fix lower for f64->f16 G_FPTRUNC

Put AND before ADD in LegalizerHelper::lowerFPTRUNC_F64_TO_F16
in order to match algorithm from AMDGPUTargetLowering::LowerFP_TO_FP16.

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




More information about the All-commits mailing list