[PATCH] D55474: [AMDGPU] Extend constant folding for logical operations

Graham Sellers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 8 05:54:00 PST 2018


grahamsellers created this revision.
grahamsellers added reviewers: arsenm, nhaehnle.
Herald added subscribers: llvm-commits, t-tye, tpr, dstuttard, yaxunl, wdng, jvesely, kzhuravl.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D55474

Files:
  lib/Target/AMDGPU/SIFoldOperands.cpp
  test/CodeGen/AMDGPU/constant-fold-imm-immreg.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55474.177392.patch
Type: text/x-patch
Size: 18994 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181208/63608692/attachment.bin>


More information about the llvm-commits mailing list