diff options
author | Matthias Braun <matze@braunis.de> | 2016-11-28 20:11:54 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2016-11-28 20:11:54 +0000 |
commit | 115efcd3d12e3617d0a2ee02499b379c67c2c5cb (patch) | |
tree | 930609a23320767934c1b6ecabb557c6ccb22984 /llvm/lib/Target/X86/X86InstrInfo.h | |
parent | a88e8358afb552aaadc3bf0aa4f76805a9d2b9ac (diff) | |
download | bcm5719-llvm-115efcd3d12e3617d0a2ee02499b379c67c2c5cb.tar.gz bcm5719-llvm-115efcd3d12e3617d0a2ee02499b379c67c2c5cb.zip |
MachineScheduler: Export function to construct "default" scheduler.
This makes the createGenericSchedLive() function that constructs the
default scheduler available for the public API. This should help when
you want to get a scheduler and the default list of DAG mutations.
This also shrinks the list of default DAG mutations:
{Load|Store}ClusterDAGMutation and MacroFusionDAGMutation are no longer
added by default. Targets can easily add them if they need them. It also
makes it easier for targets to add alternative/custom macrofusion or
clustering mutations while staying with the default
createGenericSchedLive(). It also saves the callback back and forth in
TargetInstrInfo::enableClusterLoads()/enableClusterStores().
Differential Revision: https://reviews.llvm.org/D26986
llvm-svn: 288057
Diffstat (limited to 'llvm/lib/Target/X86/X86InstrInfo.h')
-rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.h b/llvm/lib/Target/X86/X86InstrInfo.h index a0292bbdaed..8d746172dcb 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.h +++ b/llvm/lib/Target/X86/X86InstrInfo.h @@ -443,8 +443,8 @@ public: int64_t Offset1, int64_t Offset2, unsigned NumLoads) const override; - bool shouldScheduleAdjacent(MachineInstr &First, - MachineInstr &Second) const override; + bool shouldScheduleAdjacent(const MachineInstr &First, + const MachineInstr &Second) const override; void getNoopForMachoTarget(MCInst &NopInst) const override; |