llvm.org GIT mirror llvm / 6010d95
Remove HexagonTargetMachine::addPassesForOptimizations; it is not needed any more. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207800 91177308-0d34-0410-b5e6-96231b3b80d8 Pranav Bhandarkar 6 years ago
2 changed file(s) with 0 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
7676 FrameLowering(Subtarget),
7777 InstrItins(&Subtarget.getInstrItineraryData()) {
7878 initAsmInfo();
79 }
80
81 // addPassesForOptimizations - Allow the backend (target) to add Target
82 // Independent Optimization passes to the Pass Manager.
83 bool HexagonTargetMachine::addPassesForOptimizations(PassManagerBase &PM) {
84 if (getOptLevel() != CodeGenOpt::None) {
85 PM.add(createConstantPropagationPass());
86 PM.add(createLoopSimplifyPass());
87 PM.add(createDeadCodeEliminationPass());
88 PM.add(createConstantPropagationPass());
89 PM.add(createLoopUnrollPass());
90 PM.add(createLoopStrengthReducePass());
91 }
92 return true;
9379 }
9480
9581 namespace {
7070 const DataLayout *getDataLayout() const override { return &DL; }
7171 static unsigned getModuleMatchQuality(const Module &M);
7272
73 // Pass Pipeline Configuration.
74 virtual bool addPassesForOptimizations(PassManagerBase &PM) final;
7573 TargetPassConfig *createPassConfig(PassManagerBase &PM) override;
7674 };
7775