Add a policy to enable computing SchedDFSResult.
authorMark Lacey <mark.lacey@apple.com>
Mon, 30 Mar 2020 19:52:14 +0000 (12:52 -0700)
committerMark Lacey <mark.lacey@apple.com>
Wed, 22 Apr 2020 23:36:11 +0000 (16:36 -0700)
commit328bb446ddd2c03e4da3e9aa0473fa2f1c52d34e
treed85cb239a397587a78f1a273d00558f151f62f6a
parentaca335955c0dfe5dc783bf21e1d883c1aae33abc
Add a policy to enable computing SchedDFSResult.

Summary:
Make GenericScheduler compute SchedDFSResult on initialization if
the policy is set. This makes it possible to create classes
that extend GenericScheduler and rely on the results of SchedDFSResult,
e.g. to perform subtree scheduling.

NFC unless the policy is set.

Subscribers: MatzeB, hiraditya, javed.absar, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78432
llvm/include/llvm/CodeGen/MachineScheduler.h
llvm/lib/CodeGen/MachineScheduler.cpp