This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Allow rematerialization of SOP with virtual registers
ClosedPublic

Authored by rampitec on Sep 29 2021, 11:11 AM.

Details

Summary

D106408 was doing this for all targets although it was
reverted due to couple performance regressions on some targets.
The difference for AMDGPU is the ability to rematerialize SOP
instructions with virtual register uses like we already do for VOP.

Diff Detail

Event Timeline

rampitec created this revision.Sep 29 2021, 11:11 AM
rampitec requested review of this revision.Sep 29 2021, 11:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 29 2021, 11:11 AM
Herald added a subscriber: wdng. · View Herald Transcript
foad added a comment.Oct 20 2021, 2:24 AM

No objections from me.

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
123

"therefore"

llvm/test/CodeGen/AMDGPU/remat-sop.mir
55

"available"

84

"unavailable"

foad accepted this revision.Oct 20 2021, 2:28 AM
This revision is now accepted and ready to land.Oct 20 2021, 2:28 AM
rampitec updated this revision to Diff 381041.Oct 20 2021, 11:29 AM
rampitec marked 3 inline comments as done.

Fixed typos in comments.

This revision was landed with ongoing or failed builds.Oct 20 2021, 11:47 AM
This revision was automatically updated to reflect the committed changes.