[all-commits] [llvm/llvm-project] 66ee79: AMDGPU: Fix verifier error on splatted opencl fmin...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Aug 16 06:44:48 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 66ee794064744b0721b081960bc24d37f54b401f
      https://github.com/llvm/llvm-project/commit/66ee794064744b0721b081960bc24d37f54b401f
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-08-16 (Wed, 16 Aug 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
    A llvm/test/CodeGen/AMDGPU/amdgpu-simplify-libcall-fmax-splat.ll
    A llvm/test/CodeGen/AMDGPU/amdgpu-simplify-libcall-fmin-splat.ll
    A llvm/test/CodeGen/AMDGPU/amdgpu-simplify-libcall-ldexp-splat.ll

  Log Message:
  -----------
  AMDGPU: Fix verifier error on splatted opencl fmin/fmax and ldexp calls

Apparently the spec has overloads for fmin/fmax and ldexp with one of
the operands as scalar. We need to broadcast the scalars to the vector
type.

https://reviews.llvm.org/D158077




More information about the All-commits mailing list