[all-commits] [llvm/llvm-project] d0fe13: AMDGPU/GlobalISel: Fully handle 0 dmask case durin...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Tue Mar 17 07:16:12 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d0fe13ecf9a474bfc50f748895f001d292baf396
      https://github.com/llvm/llvm-project/commit/d0fe13ecf9a474bfc50f748895f001d292baf396
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-03-17 (Tue, 17 Mar 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-llvm.amdgcn.image.dim.a16.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-llvm.amdgcn.image.load.2d.d16.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-llvm.amdgcn.image.load.2d.ll

  Log Message:
  -----------
  AMDGPU/GlobalISel: Fully handle 0 dmask case during legalize

For normal loads, fully eliminate the load. For the TFE case, adjust
the dmask value in the instruction so the selector doesn't need to
handle it. For the TFE special case, I guess it would be possible to
replace the loaded data register with undef, but as-is this will start
treating it as a well defined value.




More information about the All-commits mailing list