[all-commits] [llvm/llvm-project] 877a07: GlobalISel: Restrict narrow scalar for fptoui/fpto...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Tue May 11 20:55:59 PDT 2021


  Branch: refs/heads/release/12.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 877a07bfb3b9a0bbaa3b63a222448b11d85821f0
      https://github.com/llvm/llvm-project/commit/877a07bfb3b9a0bbaa3b63a222448b11d85821f0
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2021-05-11 (Tue, 11 May 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/legalize-fptoi.mir

  Log Message:
  -----------
  GlobalISel: Restrict narrow scalar for fptoui/fptosi results

This practically only works for the f16 case AMDGPU uses, not wider
types.

Fixes bug 49710 by failing legalization.

(cherry picked from commit 83a25a101051b404bec1a5ba9cb867705f31262d)




More information about the All-commits mailing list