[all-commits] [llvm/llvm-project] a19a56: [AMDGPU] Extend constant folding for logical opera...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Tue Apr 7 11:37:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a19a56f6a1ff1f022f7af64bc1281fe018e84494
      https://github.com/llvm/llvm-project/commit/a19a56f6a1ff1f022f7af64bc1281fe018e84494
  Author: Graham Sellers <graham.sellers at amd.com>
  Date:   2020-04-07 (Tue, 07 Apr 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
    M llvm/test/CodeGen/AMDGPU/constant-fold-imm-immreg.mir

  Log Message:
  -----------
  [AMDGPU] Extend constant folding for logical operations

This patch extends existing constant folding in logical operations to
handle S_XNOR, S_NAND, S_NOR, S_ANDN2, S_ORN2, V_LSHL_ADD_U32 and
V_AND_OR_B32. Also added a couple of tests for existing folds.




More information about the All-commits mailing list