This is an archive of the discontinued LLVM Phabricator instance.

MachineScheduler: Integrate RegisterPressure classes into PressureTracker
AbandonedPublic

Authored by MatzeB on Sep 11 2015, 1:49 PM.

Details

Reviewers
atrick
Summary

Instead of forcing user to either instantiate a IntervalPressure object
or a RegionPressure object and then using a reference to it in the
PressureTracker constructor, simply integrate both into a union inside
the PressureTracker removing confusion from the interface.

It may even be a good idea to simply remove the variant working with MBB
iterators, as I couldn't find any users of that.

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB updated this revision to Diff 34585.Sep 11 2015, 1:49 PM
MatzeB retitled this revision from to MachineScheduler: Integrate RegisterPressure classes into PressureTracker.
MatzeB updated this object.
MatzeB added a reviewer: atrick.
MatzeB set the repository for this revision to rL LLVM.
MatzeB added a subscriber: llvm-commits.
atrick requested changes to this revision.Sep 12 2015, 12:02 AM
atrick edited edge metadata.

OK other than the strange spelling.

I don't really understand how this is better but the original code wasn't great, so if it makes future work easier than go for it.

include/llvm/CodeGen/RegisterPressure.h
204

Indices not Indizes.

This revision now requires changes to proceed.Sep 12 2015, 12:02 AM
MatzeB abandoned this revision.Jul 19 2017, 4:17 PM