[PATCH] D143302: [AMDGPU] Fix liveness in the SIOptimizeExecMaskingPreRA.cpp

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 3 15:29:57 PST 2023


rampitec created this revision.
rampitec added a reviewer: arsenm.
Herald added subscribers: kosarev, foad, kerbowa, hiraditya, tpr, dstuttard, yaxunl, jvesely, kzhuravl.
Herald added a project: All.
rampitec requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

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.


https://reviews.llvm.org/D143302

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143302.494759.patch
Type: text/x-patch
Size: 6612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230203/2e5f1f07/attachment.bin>


More information about the llvm-commits mailing list