This is an archive of the discontinued LLVM Phabricator instance.

Let targets to adjust operand latency of bundles
ClosedPublic

Authored by rampitec on Jan 10 2020, 12:34 PM.

Details

Summary

This reverts the AMDGPU DAG mutation implemented in D72487 and gives
a more general way of adjusting BUNDLE operand latency.

It also replaces FixBundleLatencyMutation with adjustSchedDependency
callback in the AMDGPU, fixing not only successor latencies but
predecessors' as well.

Diff Detail

Event Timeline

rampitec created this revision.Jan 10 2020, 12:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 10 2020, 12:34 PM
foad accepted this revision.Jan 10 2020, 2:01 PM

LGTM.

I'd prefer to call adjustSchedDependency unconditionally, but we can do that later.

Grammar nit: remove "to" from the summary. It's either "let them eat cake" or "allow them to eat cake".

This revision is now accepted and ready to land.Jan 10 2020, 2:01 PM
This revision was automatically updated to reflect the committed changes.