This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Avoid constructing new std::vector in initCandidate
ClosedPublic

Authored by arsenm on Sep 5 2019, 3:37 PM.

Details

Reviewers
vpykhtin
rampitec
Summary

Approximately 30% of the time was spent in the std::vector
constructor. In one testcase this pushes the scheduler to being the
second slowest pass.

I'm not sure I understand why these vector are necessary. The default
scheduler initCandidate seems to use some pre-existing vectors for the
pressure.

Diff Detail

Event Timeline

arsenm created this revision.Sep 5 2019, 3:37 PM
rampitec accepted this revision.Sep 5 2019, 3:39 PM

LGTM

This revision is now accepted and ready to land.Sep 5 2019, 3:39 PM
arsenm closed this revision.Sep 5 2019, 3:42 PM

r371136