summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranav Bhandarkar <pranavb@codeaurora.org>2014-05-01 22:10:59 +0000
committerPranav Bhandarkar <pranavb@codeaurora.org>2014-05-01 22:10:59 +0000
commit6010d958a029f8887ca481c96eca66742a0810dc (patch)
tree6584655a167ff633f4a718a928fe35239cd32d3f
parent53e72030fd9308f5c77485e7aa9a22ed4bb1fa07 (diff)
downloadllvm-6010d958a029f8887ca481c96eca66742a0810dc.tar.gz
llvm-6010d958a029f8887ca481c96eca66742a0810dc.tar.bz2
llvm-6010d958a029f8887ca481c96eca66742a0810dc.tar.xz
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
-rw-r--r--lib/Target/Hexagon/HexagonTargetMachine.cpp14
-rw-r--r--lib/Target/Hexagon/HexagonTargetMachine.h2
2 files changed, 0 insertions, 16 deletions
diff --git a/lib/Target/Hexagon/HexagonTargetMachine.cpp b/lib/Target/Hexagon/HexagonTargetMachine.cpp
index 0c5a643c7e..2572e11ae9 100644
--- a/lib/Target/Hexagon/HexagonTargetMachine.cpp
+++ b/lib/Target/Hexagon/HexagonTargetMachine.cpp
@@ -79,20 +79,6 @@ HexagonTargetMachine::HexagonTargetMachine(const Target &T, StringRef TT,
initAsmInfo();
}
-// addPassesForOptimizations - Allow the backend (target) to add Target
-// Independent Optimization passes to the Pass Manager.
-bool HexagonTargetMachine::addPassesForOptimizations(PassManagerBase &PM) {
- if (getOptLevel() != CodeGenOpt::None) {
- PM.add(createConstantPropagationPass());
- PM.add(createLoopSimplifyPass());
- PM.add(createDeadCodeEliminationPass());
- PM.add(createConstantPropagationPass());
- PM.add(createLoopUnrollPass());
- PM.add(createLoopStrengthReducePass());
- }
- return true;
-}
-
namespace {
/// Hexagon Code Generator Pass Configuration Options.
class HexagonPassConfig : public TargetPassConfig {
diff --git a/lib/Target/Hexagon/HexagonTargetMachine.h b/lib/Target/Hexagon/HexagonTargetMachine.h
index fcf5f7f15c..70b835e61e 100644
--- a/lib/Target/Hexagon/HexagonTargetMachine.h
+++ b/lib/Target/Hexagon/HexagonTargetMachine.h
@@ -71,8 +71,6 @@ public:
const DataLayout *getDataLayout() const override { return &DL; }
static unsigned getModuleMatchQuality(const Module &M);
- // Pass Pipeline Configuration.
- virtual bool addPassesForOptimizations(PassManagerBase &PM) final;
TargetPassConfig *createPassConfig(PassManagerBase &PM) override;
};