[all-commits] [llvm/llvm-project] db777e: AMDGPU/GlobalISel: Fix asserts on non-s32 sitofp/u...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Tue Jun 23 07:00:54 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: db777eaea3a7bfd6c02a3f8d5e5a42bd90943690
      https://github.com/llvm/llvm-project/commit/db777eaea3a7bfd6c02a3f8d5e5a42bd90943690
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-06-23 (Tue, 23 Jun 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/combine-itofp.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/cvt_f32_ubyte.ll

  Log Message:
  -----------
  AMDGPU/GlobalISel: Fix asserts on non-s32 sitofp/uitofp sources

The combine to form cvt_f32_ubyte0 was assuming the source type was
always 32-bit, but this needs to tolerate any legal source type.




More information about the All-commits mailing list