[all-commits] [llvm/llvm-project] c28f79: [AMDGPU] SIFoldOperands: try harder to fold cndmas...

Jay Foad via All-commits all-commits at lists.llvm.org
Thu Apr 8 06:26:39 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c28f79a0e3352a972026f6dc896d13f81835b468
      https://github.com/llvm/llvm-project/commit/c28f79a0e3352a972026f6dc896d13f81835b468
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2021-04-08 (Thu, 08 Apr 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
    M llvm/test/CodeGen/AMDGPU/fold-cndmask-wave32.mir

  Log Message:
  -----------
  [AMDGPU] SIFoldOperands: try harder to fold cndmask instructions

Look through copies to find more cases where the two values being
selected are identical. The motivation for this is just to be able to
remove the weird special case where tryFoldCndMask was called from
foldInstOperand, part way through folding a move-immediate into its
users, without regressing any lit tests.




More information about the All-commits mailing list