[all-commits] [llvm/llvm-project] 3a1866: [AMDGPU] Translate s_and/s_andn2 to s_mov in vcc o...

Carl Ritson via All-commits all-commits at lists.llvm.org
Thu Jul 16 19:49:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a18665748342d8a55c3000dcc2c444ba1de2049
      https://github.com/llvm/llvm-project/commit/3a18665748342d8a55c3000dcc2c444ba1de2049
  Author: Carl Ritson <carl.ritson at amd.com>
  Date:   2020-07-17 (Fri, 17 Jul 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp
    M llvm/test/CodeGen/AMDGPU/infinite-loop.ll
    M llvm/test/CodeGen/AMDGPU/insert-skip-from-vcc.mir
    M llvm/test/CodeGen/AMDGPU/wave32.ll

  Log Message:
  -----------
  [AMDGPU] Translate s_and/s_andn2 to s_mov in vcc optimisation

When SCC is dead, but VCC is required then replace s_and / s_andn2
with s_mov into VCC when mask value is 0 or -1.

Reviewed By: rampitec

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




More information about the All-commits mailing list