[all-commits] [llvm/llvm-project] dd0caa: [AMDGPU] Fix liveness in the SIOptimizeExecMasking...

Stanislav Mekhanoshin via All-commits all-commits at lists.llvm.org
Sun Feb 5 12:22:38 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dd0caa82de593f080469c772b5b092e1bf7f7cc0
      https://github.com/llvm/llvm-project/commit/dd0caa82de593f080469c772b5b092e1bf7f7cc0
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2023-02-05 (Sun, 05 Feb 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
    A llvm/test/CodeGen/AMDGPU/optimize-exec-mask-pre-ra-def-after-use.mir

  Log Message:
  -----------
  [AMDGPU] Fix liveness in the SIOptimizeExecMaskingPreRA.cpp

If a condition register def happens past the newly created use
we do not properly update LIS. It has two problems:

1) We do not extend defining segment to the end of its block
   marking it a live-out (this is regression after
   https://reviews.llvm.org/rG09d38dd7704a52e8ad2d5f8f39aaeccf107f4c56)

2) We do not extend use segment to the beginning of the use block
   marking it a live-in.

Fixes: SWDEV-379563

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




More information about the All-commits mailing list