[all-commits] [llvm/llvm-project] 1a6aa8: [AMDGPU] Add missing use check in SIOptimizeExecMa...

Thomas Symalla via All-commits all-commits at lists.llvm.org
Thu Mar 31 10:25:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1a6aa8b1952b289c99adb83309ee7bc55b12fa97
      https://github.com/llvm/llvm-project/commit/1a6aa8b1952b289c99adb83309ee7bc55b12fa97
  Author: Thomas Symalla <thomas.symalla at amd.com>
  Date:   2022-03-31 (Thu, 31 Mar 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIOptimizeExecMasking.cpp
    M llvm/test/CodeGen/AMDGPU/vcmp-saveexec-to-vcmpx.mir

  Log Message:
  -----------
  [AMDGPU] Add missing use check in SIOptimizeExecMasking pass.

Whenever a v_cmp, s_and_saveexec instruction sequence shall be
transformed to an equivalent s_mov, v_cmpx sequence, it needs
to be detected if the v_cmp target register is used between
the two instructions as the v_cmp result gets omitted by
using the v_cmpx instruction, resulting in invalid code.

Reviewed By: foad

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




More information about the All-commits mailing list