[all-commits] [llvm/llvm-project] e3cbf1: [AMDGPU] enable scalar compare in truncate selection

alex-t via All-commits all-commits at lists.llvm.org
Wed Sep 1 13:35:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e3cbf1d4374129ae814f9c3b572e03c6d92ee65c
      https://github.com/llvm/llvm-project/commit/e3cbf1d4374129ae814f9c3b572e03c6d92ee65c
  Author: alex-t <alexander.timofeev at amd.com>
  Date:   2021-09-01 (Wed, 01 Sep 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInstructions.td
    M llvm/test/CodeGen/AMDGPU/amdgpu-codegenprepare-fold-binop-select.ll
    M llvm/test/CodeGen/AMDGPU/cross-block-use-is-not-abi-copy.ll
    M llvm/test/CodeGen/AMDGPU/llvm.amdgcn.div.fmas.ll
    M llvm/test/CodeGen/AMDGPU/select-i1.ll
    M llvm/test/CodeGen/AMDGPU/trunc.ll
    M llvm/test/CodeGen/AMDGPU/wave32.ll

  Log Message:
  -----------
   [AMDGPU] enable scalar compare in truncate selection

Currently, the truncate selection dag node is expanded as a bitwise AND plus compare to 1.  This change enables scalar comparison in the pattern if the truncate node is uniform.

Reviewed By: rampitec

Differential Revision: https://reviews.llvm.org/D108925




More information about the All-commits mailing list