Move the Target way of overriding DAG Scheduler to a target hook
authorMehdi Amini <mehdi.amini@apple.com>
Tue, 28 Jul 2015 06:18:04 +0000 (06:18 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Tue, 28 Jul 2015 06:18:04 +0000 (06:18 +0000)
commit3942a2979d2beb28c0a9fce00697274eaeff9d51
treecb6cc768351b3d8e6250706e91cf0fea7348babd
parent268011e5e236acc86e3bfea7167ce71d243a7362
Move the Target way of overriding DAG Scheduler to a target hook

Summary:
The previous way of overriding it was relying on calling "setDefault"
on the global registry, which implies global mutable state.

Reviewers: echristo, atrick

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D11538

From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243388 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SchedulerRegistry.h
include/llvm/Target/TargetSubtargetInfo.h
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp