This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix liveness in the SIOptimizeExecMaskingPreRA.cpp
ClosedPublic

Authored by rampitec on Feb 3 2023, 3:29 PM.

Details

Summary

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)
  1. We do not extend use segment to the beginning of the use block marking it a live-in.

Fixes: SWDEV-379563

Diff Detail

Event Timeline

rampitec created this revision.Feb 3 2023, 3:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 3 2023, 3:29 PM
rampitec requested review of this revision.Feb 3 2023, 3:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 3 2023, 3:29 PM
Herald added a subscriber: wdng. · View Herald Transcript
rampitec edited the summary of this revision. (Show Details)Feb 4 2023, 12:04 AM
rampitec edited the summary of this revision. (Show Details)
arsenm accepted this revision.Feb 4 2023, 3:24 AM
This revision is now accepted and ready to land.Feb 4 2023, 3:24 AM