summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-08-28 15:52:54 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-08-28 15:52:54 +0000
commit697297afa925ef9b043b83932f63d821e00e9b28 (patch)
treecfb1e2d5626f7962aa8384546ed93620c7e4b6f3 /llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp
parentfa86fd928ee1fa086b25835ba76997445acdb812 (diff)
downloadbcm5719-llvm-697297afa925ef9b043b83932f63d821e00e9b28.tar.gz
bcm5719-llvm-697297afa925ef9b043b83932f63d821e00e9b28.zip
[Hexagon] Move pre-RA DAG mutations to scheduler constructor
llvm-svn: 311894
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp b/llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp
index 1a26805d190..375a64de7f5 100644
--- a/llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp
@@ -12,6 +12,7 @@
//
//===----------------------------------------------------------------------===//
+#include "HexagonInstrInfo.h"
#include "HexagonMachineScheduler.h"
#include "HexagonSubtarget.h"
#include "llvm/CodeGen/MachineLoopInfo.h"
@@ -51,16 +52,6 @@ using namespace llvm;
#define DEBUG_TYPE "machine-scheduler"
-namespace {
-class HexagonCallMutation : public ScheduleDAGMutation {
-public:
- void apply(ScheduleDAGInstrs *DAG) override;
-private:
- bool shouldTFRICallBind(const HexagonInstrInfo &HII,
- const SUnit &Inst1, const SUnit &Inst2) const;
-};
-} // end anonymous namespace
-
// Check if a call and subsequent A2_tfrpi instructions should maintain
// scheduling affinity. We are looking for the TFRI to be consumed in
// the next instruction. This should help reduce the instances of
@@ -336,9 +327,6 @@ void ConvergingVLIWScheduler::initialize(ScheduleDAGMI *dag) {
assert((!llvm::ForceTopDown || !llvm::ForceBottomUp) &&
"-misched-topdown incompatible with -misched-bottomup");
-
- DAG->addMutation(make_unique<HexagonSubtarget::HexagonDAGMutation>());
- DAG->addMutation(make_unique<HexagonCallMutation>());
}
void ConvergingVLIWScheduler::releaseTopNode(SUnit *SU) {
OpenPOWER on IntegriCloud