[all-commits] [llvm/llvm-project] 4ed7c6: [AMDGPU] Only match	correct type for a16
    Sebastian Neubauer via All-commits 
    all-commits at lists.llvm.org
       
    Tue Jan 25 06:07:32 PST 2022
    
    
  
  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4ed7c6eec97925281f4c2a02ec7030dab750ba34
      https://github.com/llvm/llvm-project/commit/4ed7c6eec97925281f4c2a02ec7030dab750ba34
  Author: Sebastian Neubauer <Sebastian.Neubauer at amd.com>
  Date:   2022-01-25 (Tue, 25 Jan 2022)
  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
    M llvm/test/Transforms/InstCombine/AMDGPU/amdgcn-intrinsics.ll
  Log Message:
  -----------
  [AMDGPU] Only match correct type for a16
Addresses are floats when a sampler is present and unsigned integers
when no sampler is present.
Therefore, only zext instructions, not sext instructions should match.
Also match integer constants that can be truncated.
Differential Revision: https://reviews.llvm.org/D118043
    
    
More information about the All-commits
mailing list