This is an archive of the discontinued LLVM Phabricator instance.

MachineSink: make shouldSink a TII target hook
ClosedPublic

Authored by escha on Mar 2 2016, 10:05 PM.

Details

Summary

For us, this is useful because we generally want to sink register sequences on our target (otherwise they can act as a barrier and stop us from sinking other stuff). But it should be generally straightforward and useful for any other target to override this and decide that there are things they do or don't want to sink.

Diff Detail

Repository
rL LLVM

Event Timeline

escha updated this revision to Diff 49710.Mar 2 2016, 10:05 PM
escha retitled this revision from to MachineSink: make shouldSink a TII target hook.
escha updated this object.
escha added a reviewer: resistor.
escha set the repository for this revision to rL LLVM.
escha added a subscriber: llvm-commits.
arsenm added a subscriber: arsenm.Mar 3 2016, 12:12 AM
arsenm added inline comments.
lib/CodeGen/MachineSink.cpp
676–677

Comment needs updating

escha updated this revision to Diff 49752.Mar 3 2016, 10:21 AM

Updated comments.

qcolombet accepted this revision.Mar 29 2016, 3:20 PM
qcolombet edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Mar 29 2016, 3:20 PM
escha closed this revision.Mar 29 2016, 3:54 PM