[all-commits] [llvm/llvm-project] 2e5dc4: [AMDGPU] [CodeGen] Fold negate llvm.amdgcn.class i...

Anshil Gandhi via All-commits all-commits at lists.llvm.org
Fri Jun 18 12:04:57 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e5dc4a1efe18a411734abb05b03431b120b1fea
      https://github.com/llvm/llvm-project/commit/2e5dc4a1efe18a411734abb05b03431b120b1fea
  Author: Anshil Gandhi <angandhi at amd.com>
  Date:   2021-06-18 (Fri, 18 Jun 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
    A llvm/test/CodeGen/AMDGPU/amdgpu-codegenprepare-foldnegate.ll

  Log Message:
  -----------
  [AMDGPU] [CodeGen] Fold negate llvm.amdgcn.class into test mask

Implemented the transformation of xor (llvm.amdgcn.class x, mask), -1 into
llvm.amdgcn.class(x, ~mask). Added LIT tests as well.

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




More information about the All-commits mailing list