This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix assert when trying to overextend liverange
ClosedPublic

Authored by arsenm on Oct 25 2022, 4:17 PM.

Details

Reviewers
critson
foad
rampitec
Group Reviewers
Restricted Project
Summary

This was trying to add segments beyond the new and use,
so skip additional segments.

This would hit (S < E && "Cannot create empty or backwards segment").

Diff Detail

Event Timeline

arsenm created this revision.Oct 25 2022, 4:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 25 2022, 4:17 PM
arsenm requested review of this revision.Oct 25 2022, 4:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 25 2022, 4:17 PM
Herald added a subscriber: wdng. · View Herald Transcript
critson accepted this revision.Oct 25 2022, 8:01 PM

LGTM

llvm/test/CodeGen/AMDGPU/exec-mask-opt-cannot-create-empty-or-backward-segment.ll
156

That doesn't seem like a nature alignment?

This revision is now accepted and ready to land.Oct 25 2022, 8:01 PM
arsenm added inline comments.Oct 25 2022, 8:05 PM
llvm/test/CodeGen/AMDGPU/exec-mask-opt-cannot-create-empty-or-backward-segment.ll
156

Align of 0 gets inferred to max alignment

piotr added a subscriber: piotr.Oct 27 2022, 2:01 PM

We're also hitting this in graphics - any idea when this patch could get in?

We're also hitting this in graphics - any idea when this patch could get in?

I haven't run precheck yet