This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Skip unexpected CFG in SIOptimizeVGPRLiveRange
ClosedPublic

Authored by ruiling on Jun 20 2022, 5:56 AM.

Details

Summary

There are some cases that we use si_if/si_else in unatural way.
Just skip them.

Fixes: https://github.com/llvm/llvm-project/issues/55922

Diff Detail

Event Timeline

ruiling created this revision.Jun 20 2022, 5:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 20 2022, 5:56 AM
ruiling requested review of this revision.Jun 20 2022, 5:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 20 2022, 5:56 AM
critson accepted this revision.Jun 21 2022, 1:20 AM

LGTM

llvm/test/CodeGen/AMDGPU/opt-vgpr-live-range-verifier-error.mir
5

I echo your sentiments, but I am not sure this comment is helpful in the test file. Perhaps remove it.

This revision is now accepted and ready to land.Jun 21 2022, 1:20 AM
This revision was landed with ongoing or failed builds.Jun 21 2022, 9:50 PM
This revision was automatically updated to reflect the committed changes.