Page MenuHomePhabricator

AMDGPU: Move m0 initializations earlier
ClosedPublic

Authored by kerbowa on Wed, Sep 11, 8:41 AM.

Details

Summary

After hoisting and merging m0 initializations schedule them as early as
possible in the MBB. This helps the scheduler avoid hazards in some
cases.

Diff Detail

Repository
rL LLVM

Event Timeline

kerbowa created this revision.Wed, Sep 11, 8:41 AM
kerbowa updated this revision to Diff 219722.Wed, Sep 11, 8:44 AM

Fix test.

Harbormaster completed remote builds in B38015: Diff 219722.
rampitec added inline comments.Wed, Sep 11, 11:57 AM
llvm/lib/Target/AMDGPU/SIFixSGPRCopies.cpp
614 ↗(On Diff #219722)

Pass TRI into these two calls.

kerbowa updated this revision to Diff 219772.Wed, Sep 11, 12:48 PM

Add TRI to reads/definesRegsiter.

kerbowa marked an inline comment as done.Wed, Sep 11, 12:48 PM
This revision is now accepted and ready to land.Wed, Sep 11, 12:49 PM
This revision was automatically updated to reflect the committed changes.